forked from coop-cloud/hedgedoc
Add basic health check for db container
This commit is contained in:
parent
ad73e28974
commit
6bdde4622d
|
@ -84,6 +84,12 @@ services:
|
|||
- "backupbot.backup.pre-hook=sh -c 'PGPASSWORD=$$(cat $${POSTGRES_PASSWORD_FILE}) pg_dump -U $${POSTGRES_USER} $${POSTGRES_DB} > /tmp/backup.sql'"
|
||||
- "backupbot.backup.post-hook=rm -f /tmp/backup.sql"
|
||||
- "backupbot.backup.path=/tmp/"
|
||||
healthcheck:
|
||||
test: "pg_isready"
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 5
|
||||
start_period: 1m
|
||||
volumes:
|
||||
postgres:
|
||||
codimd_uploads:
|
||||
|
|
Loading…
Reference in New Issue