-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
executable file
·58 lines (55 loc) · 1.12 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: "3"
services:
nasqar:
image: aymanm/nasqarall:nasqar
networks:
- net
ports:
- "80"
deploy:
restart_policy:
condition: any
mode: replicated
replicas: 9
placement:
constraints: [node.role == worker]
update_config:
delay: 2s
resources:
limits:
cpus: '4'
memory: 8G
labels:
- "traefik.docker.network=prod_net"
- "traefik.port=80"
- "traefik.frontend.rule=PathPrefix:/;"
- "traefik.backend.loadbalancer.sticky=true"
loadbalancer:
image: traefik
command: --docker \
--docker.swarmmode \
--docker.watch \
--web \
--loglevel=DEBUG
ports:
- 80:80
- 9090:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
restart_policy:
condition: any
mode: replicated
replicas: 1
update_config:
delay: 2s
resources:
limits:
cpus: '1'
memory: 8G
placement:
constraints: [node.role == manager]
networks:
- net
networks:
net: