From df7e4b9b9ba347b9a53e5689d88fe3f84e2e5c69 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Tue, 22 Sep 2020 10:51:17 +0200 Subject: [PATCH] Add new working example --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1cda14c..a1367e6 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,20 @@ If you push a commit to master, the [Drone config](./.drone.yml) will publish to ```yaml backupbot: image: "decentral1se/backup-bot:0.0.1" + networks: + - backend + volumes: + - "wordpress_content:/var/www/html/wp-content/" secrets: - - backup_bot_ssh_key + - source: backup_bot_ssh_key + mode: 0400 + - backup_bot_password - db_password configs: - source: borgmatic_config_yml target: /etc/borgmatic/config.yaml environment: - - BORGBASE_REPO="g067e243@g067e243.repo.borgbase.com:repo" + - BORGBASE_REPO="foo@bar.repo.borgbase.com:repo" - DB_HOST=mariadb - DB_TABLE=wordpress - DB_USER=wordpress @@ -29,7 +35,7 @@ backupbot: replicas: 0 labels: - "swarm.cronjob.enable=true" - - "swarm.cronjob.schedule=0 2 * * *" # "At 02:00 every night" + - "swarm.cronjob.schedule=0 2 * * *" # At 02:00 restart_policy: condition: none ```