iac/nixos/hosts/asxpio-ops/apps.nix
Sergei Poljanski 998ce26478
All checks were successful
nixos / nixos (push) Successful in 24s
ops: no more app containers on Postgres and Garage
asxpio, datacenterbingo, blog and czsk run on asxpio-services now and
reach Postgres and Garage over the private network; vhpbot, the last
container, uses neither. So Postgres no longer admits Podman's networks,
the firewall no longer opens 5432 and 3900 to them, and the container
plumbing for the Docker-era storage stack goes: the postgres/garage host
aliases and the empty storage network.

Assisted-by: Claude:opus-5-5
2026-11-17 14:21:00 +04:00

16 lines
696 B
Nix

# vhpbot, the last app stack in containers, deploys itself from its own
# repository: CI copies a compose file and a .env to /opt/<app> and runs
# `docker compose up -d` as user deploy. blog, czsk, datacenterbingo and
# asxpio run on asxpio-services from their flakes (apps.nix there).
{ ... }:
{
# After a reboot the containers come back once their network is there
systemd.services.podman-restart = {
after = [ "podman-network-traefik.service" ];
wants = [ "podman-network-traefik.service" ];
};
# `docker compose up --build` (vhpbot-prod builds on the host) starts
# BuildKit in a privileged container
asxpio.security.containers."buildx_buildkit_.*" = [ "privileged" ];
}