df7e4b9b9b
continuous-integration/drone/push Build is passing
Details
|
||
---|---|---|
.drone.yml | ||
Dockerfile | ||
LICENSE | ||
Makefile | ||
README.md |
README.md
backup-bot
A robot who does backups in the swarm.
Publishing
If you push a commit to master, the Drone config will publish to Docker Hub.
Usage
backupbot:
image: "decentral1se/backup-bot:0.0.1"
networks:
- backend
volumes:
- "wordpress_content:/var/www/html/wp-content/"
secrets:
- 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="foo@bar.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
restart_policy:
condition: none