From 150c953c5136e9d25902fd8e137ba8e3b7188eec Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Mon, 25 Oct 2021 13:37:15 +0200 Subject: [PATCH] Add labels for backup-bot-two --- compose.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/compose.yml b/compose.yml index 11dd805..e35d641 100644 --- a/compose.yml +++ b/compose.yml @@ -31,6 +31,8 @@ services: - "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect" - "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true" - "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}" + - "backupbot.backup=true" + - "backupbot.backup.path=/var/lib/ghost/content" # healthcheck: # test: ["CMD", "curl", "-f", "http://localhost"] # interval: 30s @@ -46,6 +48,12 @@ services: MYSQL_ROOT_PASSWORD: ghost volumes: - "mysql:/var/lib/mysql" + deploy: + labels: + - "backupbot.backup=true" + - "backupbot.backup.pre-hook=mysqldump -u root -pghost ghost --tab /var/lib/mysql-files/" + - "backupbot.backup.post-hook=rm -rf /var/lib/mysql-files/*" + - "backupbot.backup.path=/var/lib/mysql-files/" networks: proxy: