fix: update PostgreSQL healthcheck command and ensure default network is specified
Some checks failed
Build And Publish Production Image / Build And Publish Production Image (push) Failing after 15s

This commit is contained in:
2026-03-28 14:10:37 -03:00
parent 1c4a35eea8
commit 5499a8a585

View File

@@ -9,8 +9,10 @@ services:
POSTGRES_PASSWORD: ${SPRING_DATASOURCE_PASSWORD} POSTGRES_PASSWORD: ${SPRING_DATASOURCE_PASSWORD}
volumes: volumes:
- postgres-data:/var/lib/postgresql/data - postgres-data:/var/lib/postgresql/data
networks:
- default
healthcheck: healthcheck:
test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -p 5432 -U postgres"] test: ["CMD-SHELL", "pg_isready -U ${SPRING_DATASOURCE_USERNAME} -d ${APP_DB_NAME:-condado}"]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 10 retries: 10