update backupbot label

This commit is contained in:
Moritz
2024-10-24 13:49:26 +02:00
parent dfe893160f
commit 5c6985596e
7 changed files with 64 additions and 12 deletions

View File

@ -56,6 +56,15 @@ services:
test: ["CMD", "pg_isready", "-U", "$POSTGRES_USER" ]
volumes:
- telegram-postgres:/var/lib/postgresql/data
deploy:
labels:
backupbot.backup.pre-hook: "/pg_backup.sh backup"
backupbot.backup.volumes.telegram-postgres.path: "backup.sql"
backupbot.restore.post-hook: '/pg_backup.sh restore'
configs:
- source: pg_backup
target: /pg_backup.sh
mode: 0555
configs:
telegram_bridge_yaml: