Fix: Remove PostgreSQL port mapping in production
Database is only accessed via Docker network, not externally. This prevents port 5432 conflicts on production servers.
This commit is contained in:
parent
15905d676a
commit
abc763d135
@ -13,8 +13,9 @@ services:
|
|||||||
- postgres_data:/var/lib/postgresql/data
|
- postgres_data:/var/lib/postgresql/data
|
||||||
# Mount all migration files for initialization
|
# Mount all migration files for initialization
|
||||||
- ./migrations:/docker-entrypoint-initdb.d:ro
|
- ./migrations:/docker-entrypoint-initdb.d:ro
|
||||||
ports:
|
# NO external port mapping - only accessible via Docker network
|
||||||
- "${POSTGRES_PORT:-5432}:5432"
|
# ports:
|
||||||
|
# - "${POSTGRES_PORT:-5432}:5432"
|
||||||
restart: always
|
restart: always
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
|
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user