diff --git a/docker-compose.v2.yml b/docker-compose.v2.yml index 70c3d1e..5ac1938 100644 --- a/docker-compose.v2.yml +++ b/docker-compose.v2.yml @@ -32,7 +32,9 @@ services: ports: # HOST_BIND=127.0.0.1 in prod keeps these off the public interface (only # Caddy's 80/443 face the internet). Unset → 0.0.0.0 for local/LAN dev. - - "${HOST_BIND:-0.0.0.0}:5432:5432" + # Host port is configurable (PG_HOST_PORT) — 5432 is often taken by another + # local project's postgres; the internal stack always uses postgres:5432. + - "${HOST_BIND:-0.0.0.0}:${PG_HOST_PORT:-5532}:5432" healthcheck: test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d flatrender"] interval: 5s