backup-bot-two/compose.yml

37 lines
868 B
YAML
Raw Normal View History

---
version: "3.8"
services:
app:
image: thecoopcloud/backup-bot-two:latest
build: .
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "backups:/backups"
environment:
- RESTIC_REPO
- RESTIC_PASSWORD_FILE=/run/secrets/restic_password
- BACKUP_DEST=/backups
- SERVER_NAME
secrets:
- restic_password
deploy:
mode: replicated
replicas: 0
labels:
- "swarm.cronjob.enable=true"
# Note(3wc): every 5m, testing
- "swarm.cronjob.schedule=*/5 * * * *"
# Note(3wc): blank label to be picked up by `abra recipe sync`
- coop-cloud.${STACK_NAME}.app.version=
restart_policy:
condition: none
volumes:
backups:
secrets:
restic_password:
external: true
name: ${STACK_NAME}_restic_password_${SECRET_RESTIC_PASSWORD_VERSION}