parent
3fc480b82b
commit
fcf5bade21
@ -84,6 +84,13 @@ services:
|
|||||||
backupbot.backup.path: "/var/lib/postgresql/data/backup.sql"
|
backupbot.backup.path: "/var/lib/postgresql/data/backup.sql"
|
||||||
backupbot.restore: "true"
|
backupbot.restore: "true"
|
||||||
backupbot.restore.post-hook: "sh -c 'psql -U $${POSTGRES_USER} -d $${POSTGRES_DB} < /var/lib/postgresql/data/backup.sql && rm -f /var/lib/postgresql/data/backup.sql'"
|
backupbot.restore.post-hook: "sh -c 'psql -U $${POSTGRES_USER} -d $${POSTGRES_DB} < /var/lib/postgresql/data/backup.sql && rm -f /var/lib/postgresql/data/backup.sql'"
|
||||||
|
healthcheck:
|
||||||
|
test: "pg_isready"
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 5
|
||||||
|
start_period: 1m
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres:
|
postgres:
|
||||||
codimd_uploads:
|
codimd_uploads:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user