-
Notifications
You must be signed in to change notification settings - Fork 0
/
stack.yml
44 lines (42 loc) · 1.11 KB
/
stack.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '3.7'
volumes:
backups:
web:
networks:
backups:
services:
disasterman:
image: qbitartifacts/disasterman:master
environment:
- HEADER_NAME=DisasterMan
- ADMIN_PASSWORD=admin123
#- SMTP_SERVER=smtp.gmail.com
#- SMTP_ENCRYPTION=starttls
#- SMTP_PASSWORD=mypassword
ports:
- 8080:8080
volumes:
- backups:/backups
- web:/etc/rdiffweb
networks:
- backups
deploy:
placement:
constraints:
- node.labels.backups == server
agent:
image: qbitartifacts/disasterman-agent:master
environment:
# scheduled everyday at 4:00AM
- CRON_SCHEDULE=0 4 * * *
- SERVER=disasterman
volumes:
- /var/lib/docker/volumes:/volumes
networks:
- backups
deploy:
mode: global
placement:
constraints:
- node.labels.backups != server