backup-bot-two/compose.yaml

45 lines
1.1 KiB
YAML
Raw Permalink Normal View History

services:
app:
image: docker:24.0.7-dind
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/var/lib/docker/volumes/:/var/lib/docker/volumes/"
- "/var/lib/docker/containers/:/var/lib/docker/containers/:ro"
environment:
- CRON_SCHEDULE
- RESTIC_REPOSITORY_FILE=/run/secrets/restic_repo
2024-05-28 20:20:40 +00:00
- RESTIC_PASSWORD_FILE=/run/secrets/restic_password
secrets:
- restic_repo
2024-05-28 20:20:40 +00:00
- restic_password
configs:
- source: entrypoint
target: /entrypoint.sh
mode: 0555
2023-09-06 23:41:03 +00:00
- source: backupbot
2023-09-07 11:10:10 +00:00
target: /usr/bin/backup
mode: 0555
entrypoint: ['/entrypoint.sh']
2023-09-07 23:17:01 +00:00
healthcheck:
test: "pgrep crond"
interval: 30s
timeout: 10s
retries: 10
start_period: 5m
secrets:
restic_repo:
external: true
name: ${STACK_NAME}_restic_repo
2024-05-28 20:20:40 +00:00
restic_password:
external: true
name: ${STACK_NAME}_restic_password
configs:
entrypoint:
name: ${STACK_NAME}_entrypoint
file: entrypoint.sh
2023-09-06 23:41:03 +00:00
backupbot:
name: ${STACK_NAME}_backupbot
2023-09-06 23:41:03 +00:00
file: backupbot.py