forked from coop-cloud/backup-bot-two
Variables, Dockerfile, better syntax, etc.
This commit is contained in:
30
compose.yml
Normal file
30
compose.yml
Normal 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:
|
Reference in New Issue
Block a user