-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
30 lines (30 loc) · 1 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: '2.1'
services:
duply: #only for build (will be left as stopped container, alternativ build only config
build: ./data/Dockerfiles/backup_duply
image: backup_duply
backup-monitor: #could also be a cronjob on backup-scheduler, but as its job is to control the cron, separate is better, mailcow-watchdog code
image: backup_scheduler
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./data/conf/backup:/etc/backup
- crypt-vol-1:/root/.gnupg
restart: always
environment:
- TZ=${TZ}
- USE_WATCHDOG=${USE_WATCHDOG:-n}
- WATCHDOG_NOTIFY_EMAIL=${WATCHDOG_NOTIFY_EMAIL}
- MAILCOW_HOSTNAME=${MAILCOW_HOSTNAME}
backup-scheduler:
build: ./data/Dockerfiles/backup_scheduler
image: backup_scheduler
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./data/conf/backup/:/etc/backup
- crypt-vol-1:/root/.gnupg
environment:
- TZ=${TZ}
command: crond -d 8 -f
volumes:
crypt-vol-1: