Also spoof out a backup-bot config

This commit is contained in:
Luke Murphy 2020-09-18 10:25:41 +02:00
parent 4adff2883e
commit f3cf093fb6
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 28 additions and 0 deletions

View File

@ -44,6 +44,28 @@ services:
- db_password
- db_root_password
backupbot:
image: "decentral1se/backup-bot:0.0.1"
secrets:
- backup_bot_ssh_key
- db_password
configs:
- source: borgmatic_config_yml
target: /etc/borgmatic/config.yaml
environment:
- BORGBASE_REPO="g067e243@g067e243.repo.borgbase.com:repo"
- DB_HOST=mariadb
- DB_TABLE=wordpress
- DB_USER=wordpress
deploy:
mode: replicated
replicas: 0
labels:
- "swarm.cronjob.enable=true"
- "swarm.cronjob.schedule=0 2 * * *" # "At 02:00 every night"
restart_policy:
condition: none
networks:
backend:
driver: overlay
@ -54,6 +76,12 @@ volumes:
mariadb:
wordpress_content:
configs:
borgmatic_config_yml:
name: borgmatic_config_yml_v1
file: borgmatic.yml
template_driver: golang
secrets:
db_root_password:
external: true