This commit is contained in:
2026-03-15 21:14:52 -03:00
parent d5af338ee1
commit 9bf76f602c
5 changed files with 17 additions and 22 deletions
+2 -4
View File
@@ -8,11 +8,11 @@ services:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- postgres_data:/var/lib/postgresql/data
- ./db_data:/var/lib/postgresql/data
ports:
- "${POSTGRES_PORT:-5432}:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER}"]
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
@@ -31,5 +31,3 @@ services:
db:
condition: service_healthy
volumes:
postgres_data: