add pg healthcheck
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon 2024-11-26 18:52:53 +01:00
parent 0ae5b0136e
commit bf72a64f7e

View File

@ -62,6 +62,11 @@ services:
- source: pg_backup
target: /pg_backup.sh
mode: 0555
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- postgres:/var/lib/postgresql/data
deploy: