-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathDocker-compose.yml
62 lines (56 loc) · 1.7 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
59
60
61
62
version: '3'
services:
traefik:
image: traefik:tetedemoine
command:
- "--api"
- "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https"
- "--entrypoints=Name:https Address::443 TLS"
- "--defaultentrypoints=http,https"
- "--acme"
- "--acme.storage=/data/acme.json"
- "--acme.entryPoint=https"
- "--acme.httpChallenge.entryPoint=http"
- "--acme.onHostRule=true"
- "--acme.onDemand=false"
- "--acme.email=weslleycsil@gmail.com"
- "--docker"
- "--docker.swarmMode"
- "--docker.domain=sr01.twcreativs.stream"
- "--docker.watch"
networks:
- traefik-net
ports:
- "80:80"
- "443:443"
- "9001:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- traefik_data:/data
deploy:
placement:
constraints: [node.role==manager]
update_config:
parallelism: 1
delay: 10s
portainer:
image: portainer/portainer
command: -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
networks:
- traefik-net
ports:
- "9000:9000"
deploy:
placement:
constraints: [node.role == manager]
labels:
- "traefik.port=9000"
- "traefik.frontend.rule=Host:dash.sr01.twcreativs.stream"
volumes:
portainer_data:
traefik_data:
networks:
traefik-net: