forked from docker-flow/docker-flow-swarm-listener
-
Notifications
You must be signed in to change notification settings - Fork 6
/
stack.yml
53 lines (49 loc) · 1.35 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
45
46
47
48
49
50
51
52
53
version: "3"
services:
swarm-listener:
image: dockerflow/docker-flow-swarm-listener:${TAG:-latest}
networks:
- proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DF_NOTIFY_CREATE_SERVICE_URL=http://proxy:8080/v1/docker-flow-proxy/reconfigure
- DF_NOTIFY_REMOVE_SERVICE_URL=http://proxy:8080/v1/docker-flow-proxy/remove
deploy:
labels:
- com.df.notify=true
- com.df.distribute=true
- com.df.alertName=memlimit
- com.df.alertIf=@service_mem_limit:0.8
- com.df.alertFor=30s
placement:
constraints: [node.role == manager]
resources:
reservations:
memory: 10M
limits:
memory: 20M
docs:
image: dockerflow/docker-flow-swarm-listener-docs:${TAG:-latest}
networks:
- proxy
deploy:
labels:
- com.df.distribute=true
- com.df.notify=true
- com.df.reschedule=true
- com.df.port=80
- com.df.serviceDomain=swarmlistener.dockerflow.com,sl.dockerflow.com
- com.df.servicePath=/
- com.df.alertName=memlimit
- com.df.alertIf=@service_mem_limit:0.8
- com.df.alertFor=30s
replicas: 2
resources:
reservations:
memory: 5M
limits:
memory: 10M
networks:
proxy:
external: true