-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdocker-compose-full-stack.yml
57 lines (52 loc) · 1.47 KB
/
docker-compose-full-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
version: "3"
services:
# From http://proxy.dockerflow.com/swarm-mode-stack/
proxy:
image: dockerflow/docker-flow-proxy
ports:
- 80:80
- 443:443
networks:
- proxy
environment:
- LISTENER_ADDRESS=swarm-listener
- MODE=swarm
deploy:
replicas: 2
swarm-listener:
image: dockerflow/docker-flow-swarm-listener
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:
placement:
constraints: [node.role == manager]
# Let's Encrypt Companion
letsencrypt-companion:
image: hamburml/docker-flow-letsencrypt:latest
networks:
- proxy
environment:
- DOMAIN_1=('haembi.de' 'www.haembi.de' 'blog.haembi.de')
- DOMAIN_2=('michael-hamburger.de' 'www.michael-hamburger.de' 'blog.michael-hamburger.de')
- PROXY_ADDRESS=proxy
- CERTBOT_CRON_RENEW=('0 3 * * *' '0 15 * * *')
volumes:
- /etc/letsencrypt:/etc/letsencrypt
deploy:
labels:
- com.df.servicePath=/.well-known/acme-challenge
- com.df.notify=true
- com.df.distribute=true
- com.df.port=80
placement:
constraints: [node.id == <nodeId>]
replicas: 1
networks:
proxy:
external: true