-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.traefik.yml
63 lines (60 loc) · 1.84 KB
/
docker-compose.traefik.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
version: '3'
services:
traefik:
image: ${TRAEFIK_IMAGE_TAG}
command:
- "--log.level=${TRAEFIK_LOG_LEVEL}"
- "--accesslog=true"
- "--api.dashboard=true"
- "--api.insecure=true"
- "--ping=true"
- "--ping.entrypoint=ping"
- "--entryPoints.ping.address=:8084"
- "--entryPoints.web.address=:80"
- "--entryPoints.websecure.address=:443"
- "--providers.docker=true"
- "--providers.docker.endpoint=unix:///var/run/docker.sock"
- "--providers.docker.exposedByDefault=false"
- "--certificatesresolvers.letsencrypt.acme.tlschallenge=true"
- "--certificatesresolvers.letsencrypt.acme.email=${TRAEFIK_ACME_EMAIL}"
- "--certificatesresolvers.letsencrypt.acme.storage=/etc/traefik/acme/acme.json"
# - "--metrics.prometheus=true"
# - "--metrics.prometheus.buckets=0.1,0.3,1.2,5.0"
# - "--global.checkNewVersion=true"
# - "--global.sendAnonymousUsage=false"
- "--providers.file.filename=/middle/middlewares.yml"
# labels:
# - "traefik.enable=true"
# - "traefik.http.routers.dashboard.rule=PathPrefix(`/dashboard`)"
# - "traefik.http.routers.dashboard.service=api@internal"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik-certificates:/etc/traefik/acme
- ./revprox/middlewares.yml:/middle/middlewares.yml:ro
networks:
- stac-network
ports:
- "80:80"
- "8080:8080"
- "443:443"
healthcheck:
test:
[
"CMD",
"wget",
"http://localhost:8084/ping",
"--spider"
]
interval: 120s
timeout: 5s
retries: 3
start_period: 5s
restart: unless-stopped
logging:
driver: "json-file"
options:
max-file: '1'
max-size: 512m
networks:
stac-network:
driver: bridge