enable backup and restore in postgres compose file

This commit is contained in:
brooke 2025-01-28 11:24:33 -05:00
parent d5e3dc2773
commit 7aaa66d941

View File

@ -16,9 +16,11 @@ services:
image: postgres:17.2
deploy:
labels:
backupbot.backup: "${ENABLE_BACKUPS:-true}"
backupbot.backup.pre-hook: "/pg_backup.sh backup"
backupbot.backup.volumes.db.path: "backup.sql"
backupbot.restore.post-hook: '/pg_backup.sh restore'
backupbot.restore.post-hook: "/pg_backup.sh restore"
backupbot.restore: "${ENABLE_BACKUPS:-true}"
environment:
- POSTGRES_DB=gotosocial
- POSTGRES_USER=gotosocial-user