-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathstack.yml
38 lines (34 loc) · 824 Bytes
/
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
version: "3"
services:
# main:
# image: vfarcic/docker-flow-cron:${TAG:-latest}
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# ports:
# - ${PORT:-8080}:8080
# deploy:
# placement:
# constraints: [node.role == manager]
docs:
image: vfarcic/docker-flow-cron-docs:${TAG:-latest}
networks:
- proxy
deploy:
labels:
- com.df.distribute=true
- com.df.notify=true
- com.df.port=80
- com.df.serviceDomain=cron.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