docker-compose: expose postgres port by default to be accessible locally (#82)

This commit is contained in:
Ivan FB 2024-03-19 11:05:44 +01:00 committed by GitHub
parent 7844f63688
commit 84be3c59e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -119,8 +119,8 @@ services:
- ./postgres_cfg/db.sql:/docker-entrypoint-initdb.d/db.sql:Z
- ${PG_DATA_DIR:-./postgresql}:/var/lib/postgresql/data:Z
command: postgres -c config_file=/etc/postgresql/postgresql.conf
ports: []
# - 127.0.0.1:5432:5432
ports:
- 127.0.0.1:5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d postgres"]
interval: 30s