forked from docker-flow/docker-flow-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stack.yml
91 lines (84 loc) · 2.16 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: "3.2"
services:
proxy:
image: dockerflow/docker-flow-proxy:${TAG:-latest}
ports:
- 80:80
- 443:443
networks:
- proxy
environment:
- LISTENER_ADDRESS=swarm-listener
- STATS_USER=none
- STATS_PASS=none
secrets:
- dfp_users_vfarcic
deploy:
labels:
- com.df.notify=true
- com.df.alertName=memlimit
- com.df.alertIf=@service_mem_limit:0.8
- com.df.alertFor=30s
replicas: 2
update_config:
parallelism: 1
delay: 10s
resources:
reservations:
memory: 20M
limits:
memory: 50M
docs:
image: dockerflow/docker-flow-proxy-docs:${TAG:-latest}
networks:
- proxy
deploy:
labels:
- com.df.notify=true
- com.df.reschedule=true
- com.df.port=80
- com.df.serviceDomain=proxy.dockerflow.com
- com.df.servicePath=/
- com.df.alertName.1=mem_limit
- com.df.alertIf.1=@service_mem_limit:0.8
- com.df.alertFor.1=30s
- com.df.alertName.2=replicas_running
- com.df.alertIf.2=@replicas_running
- com.df.alertFor.2=1m
replicas: 2
resources:
reservations:
memory: 5M
limits:
memory: 10M
letsencrypt:
image: hamburml/docker-flow-letsencrypt:latest
networks:
- proxy
environment:
- DOMAIN_1=("dockerflow.com" "proxy.dockerflow.com" "swarmlistener.dockerflow.com" "monitor.dockerflow.com" "jenkins.dockerflow.com" "prometheus.dockerflow.com" "proxy-letsencrypt.dockerflow.com" "registry.dockerflow.com")
- PROXY_ADDRESS=proxy
- CERTBOT_CRON_RENEW=("0 3 * * *" "0 15 * * *")
volumes:
- lets-encrypt:/etc/letsencrypt
deploy:
labels:
- com.df.servicePath=/.well-known/acme-challenge
- com.df.notify=true
- com.df.port=80
resources:
reservations:
memory: 20M
limits:
memory: 30M
networks:
proxy:
external: true
secrets:
dfp_users_vfarcic:
external: true
volumes:
lets-encrypt:
driver: cloudstor:aws
external: false