Add new working example
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4a8cebe14b
commit
df7e4b9b9b
12
README.md
12
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
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue