-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
73 lines (70 loc) · 1.92 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
63
64
65
66
67
68
69
70
71
72
73
version: "3.4"
services:
web:
image: "${DOCKER_IMAGE}:${DOCKER_TAG}"
command:
- "--accesslog.format=common"
- "--acme"
- "--acme.acmelogging=true"
- "--acme.email=${ACME_EMAIL}"
- "--acme.entryPoint=https"
- "--acme.onhostrule=true"
- "--acme.storage=/acme.json"
- "--api"
- "--api.dashboard=true"
- "--api.entryPoint=traefik"
- "--checkNewVersion=true"
- "--debug"
- "--defaultEntryPoints=https,http"
- "--docker"
- "--docker.domain=${DOCKER_DOMAIN}"
- "--docker.endpoint=unix:///var/run/docker.sock"
- "--docker.exposedbydefault=false"
- "--docker.swarmmode=true"
- "--docker.watch=true"
- "--entrypoints=Name:http Address::80 Redirect.EntryPoint:https"
- "--entrypoints=Name:https Address::443 TLS"
- "--entrypoints=Name:traefik Address::8080"
- "--entrypoints=Name:ping Address::8082"
- "--logLevel=DEBUG"
- "--ping"
- "--ping.entryPoint=traefik"
- "--rest"
- "--rest.entryPoint=traefik"
- "--retry"
ports:
- target: 80
published: 80
protocol: tcp
mode: host
- target: 443
published: 443
protocol: tcp
mode: host
networks:
- web
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/traefik/acme.json:/acme.json
deploy:
mode: global
placement:
constraints:
- node.role == manager
restart_policy:
condition: any
labels:
- "traefik.default.healthcheck.path=/health"
- "traefik.default.healthcheck.interval=10s"
- "traefik.default.protocol=http"
- "traefik.docker.network=traefik_web"
- "traefik.enable=true"
- "traefik.frontend.rule=Host:traefik.${DOCKER_DOMAIN}"
- "traefik.port=8080"
networks:
web:
driver: overlay
driver_opts:
encrypted: 1
volumes:
acme: