Variables, Dockerfile, better syntax, etc.

This commit is contained in:
3wc
2021-11-06 19:45:39 +02:00
parent 49ed657084
commit 8317f50a8a
5 changed files with 80 additions and 24 deletions

30
compose.yml Normal file
View File

@ -0,0 +1,30 @@
---
version: "3.8"
services:
app:
image: thecoopcloud/backup-bot-two:latest
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 minute, testing
- "swarm.cronjob.schedule=*/5 * * * *"
# - "swarm.cronjob.schedule=0 9 * * 1-5" # office hours
- coop-cloud.${STACK_NAME}.app.version=24.98.9-slim-d3db1c25
restart_policy:
condition: none
volumes:
backups: