Skip to content

Commit

Permalink
Log postgres to test why it is not healthy
Browse files Browse the repository at this point in the history
  • Loading branch information
TIL-EBP committed Nov 14, 2024
1 parent c7cae81 commit 6db554d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ services:
volumes:
- db:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "${PGUSER}", "${PGDATABASE}"]
test: ["CMD-SHELL", "pg_isready -U ${PGUSER} -d ${PGDATABASE}"]
interval: 10s
timeout: 5s
retries: 5
command: postgres -c log_statement=all

volumes:
minio:
Expand Down

0 comments on commit 6db554d

Please sign in to comment.