-
Notifications
You must be signed in to change notification settings - Fork 7
/
roo-docker-compose.yml
43 lines (42 loc) · 1.08 KB
/
roo-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
31
32
33
34
35
36
37
38
39
40
41
42
43
version: "3.7"
services:
roo:
image: sfproductlabs/roo:latest
# command: valgrind --tool=memcheck --vgdb=yes --leak-check=yes --track-origins=yes --progress-interval=600 /app/roo/rood /app/roo/roo/config.json
# command: tail -F test
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- forenet
ports:
- target: 80
published: 80
mode: host
- target: 443
published: 443
mode: host
deploy:
mode: global
# replicas: 3 # need to remove global mode if we want to run replicas
endpoint_mode: dnsrr
placement:
constraints:
- node.labels.load_balancer == true
update_config:
parallelism: 1
delay: 10s
restart_policy:
condition: any
environment:
- SWARM_NODE={{.Node.Hostname}}
- ROO_DNS=tasks.roo_roo.
- ROO_RESOLVER=127.0.0.11
- ROO_START_DELAY=10
- ROO_ACME_STAGING=false
logging:
options:
max-size: "50m"
networks:
forenet:
driver: overlay
external: true