nixos: app stacks on Podman, unchanged
The apps keep deploying themselves: their CI copies a compose file and a .env and runs docker compose as user deploy. `docker` is now the real Docker CLI against rootful Podman's socket, so compose, inspect and logs behave as before and every user sees the same containers. Their compose files still expect the storage stack's network and the hosts postgres and garage. On ops every container resolves those two names to the host, where the native services run, and an empty storage network exists, so nothing in the app repositories has to change for the move itself. Tried on the rehearsal pair with the real asxpio and datacenterbingo images on the restored database and Garage (mail and IndexNow disabled): both serve through Traefik, and a local compose build works. One thing does need the app repositories: Podman ignores the HEALTHCHECK of OCI-format images, which is what the CI builds, so the deploy's wait for "healthy" would time out. Declaring the healthcheck in each compose file fixes it, also under Docker; see MIGRATION.md. ops-data.sh now also moves the monitoring history, Traefik's certificates and the app directories, and pulls the images again. Assisted-by: Claude:opus-5-5
This commit is contained in:
parent
2a0e7bd83a
commit
fa46d26f89
1 changed files with 98 additions and 10 deletions
|
|
@ -244,9 +244,9 @@ in
|
|||
pkgs.wireguard-tools
|
||||
pkgs.iproute2
|
||||
pkgs.coreutils
|
||||
config.virtualisation.podman.package
|
||||
"/run/current-system/sw" # docker, the alias for podman
|
||||
pkgs.docker-client # `docker ps` / `docker inspect`, against Podman
|
||||
];
|
||||
environment.DOCKER_HOST = "unix:///run/podman/podman.sock";
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.python3}/bin/python3 ${./security-metrics.py} ${securityConfig}";
|
||||
|
|
|
|||
Loading…
Reference in a new issue