ops: no more app containers on Postgres and Garage
All checks were successful
nixos / nixos (push) Successful in 24s
All checks were successful
nixos / nixos (push) Successful in 24s
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
This commit is contained in:
parent
1a3d283e63
commit
998ce26478
1 changed files with 6 additions and 48 deletions
|
|
@ -20,16 +20,13 @@ in
|
|||
services.postgresql = {
|
||||
enable = true;
|
||||
package = pkgs.postgresql_18;
|
||||
# App containers connect from Podman's networks; the firewall decides
|
||||
# who reaches the port
|
||||
# The apps on asxpio-services connect over the private network; the
|
||||
# firewall admits only the private networks to the port
|
||||
enableTCPIP = true;
|
||||
authentication = ''
|
||||
host all all 10.88.0.0/16 scram-sha-256
|
||||
host all all 10.89.0.0/16 scram-sha-256
|
||||
host asxpio bingo,asxpio 10.10.0.20/32 scram-sha-256
|
||||
'';
|
||||
};
|
||||
networking.firewall.interfaces."podman*".allowedTCPPorts = [ 5432 ];
|
||||
asxpio.security.loginUsers = [ "postgres" ];
|
||||
asxpio.security.ports = [ "tcp/5432/.postgres-wrapp" ];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue