Add backup-bot-two labels
This commit is contained in:
parent
0771aae91c
commit
ab3361f46d
|
@ -49,6 +49,8 @@ services:
|
|||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.0.0+5.8.1"
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.path=/var/www/html"
|
||||
|
||||
db:
|
||||
image: "mariadb:10.6"
|
||||
|
@ -64,6 +66,12 @@ services:
|
|||
secrets:
|
||||
- db_password
|
||||
- db_root_password
|
||||
deploy:
|
||||
labels:
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.path=/tmp/dump.sql.gz"
|
||||
- "backupbot.backup.post-hook=rm -f /tmp/dump.sql.gz"
|
||||
- "backupbot.backup.pre-hook=mysqldump -u root -p`cat /run/secrets/db_root_password` wordpress | gzip > /tmp/dump.sql.gz"
|
||||
|
||||
networks:
|
||||
backend:
|
||||
|
|
Loading…
Reference in New Issue