Add new working example
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Luke Murphy 2020-09-22 10:51:17 +02:00
parent 4a8cebe14b
commit df7e4b9b9b
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 9 additions and 3 deletions

View File

@ -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
```