-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
74 lines (61 loc) · 1.83 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
74
version: '3.8'
x-default-opts:
&default-opts
logging:
options:
max-size: "1m"
services:
proxy:
<<: *default-opts
image: traefik:2.4
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- traefik-logs:/logs
- ./certs:/certs
- ./dynconf:/dynconf
environment:
TZ: "Europe/Warsaw"
command:
- "--providers.docker"
- "--providers.docker.exposedByDefault=false"
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
# Local development do not use SWARM
- "--providers.docker.swarmMode=false"
- "--providers.docker.network=traefik-public"
- "--providers.file.directory=/dynconf"
- "--providers.file.watch=true"
- "--log=true"
- "--log.filePath=/logs/traefik.log"
- "--log.level=ERROR"
- "--accesslog=false"
- "--accesslog.filepath=/logs/access.log"
- "--accesslog.bufferingsize=25"
- "--api=true"
- "--api.dashboard=true"
- "--entrypoints.web.http.redirections.entrypoint.to=websecure"
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
- "--entryPoints.web.address=:80"
- "--entryPoints.websecure.address=:443"
ports:
- target: 80
published: 80
protocol: tcp
mode: host
- target: 443
published: 443
protocol: tcp
mode: host
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.entrypoints=websecure"
- "traefik.http.routers.traefik.rule=Host(`traefik.localhost`)"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.tls=true"
- "traefik.http.services.traefik.loadbalancer.server.port=80"
networks:
- traefik-public
networks:
traefik-public:
external: true
volumes:
traefik-logs: