-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
60 lines (58 loc) · 2.53 KB
/
Copy pathdocker-compose.override.yml
File metadata and controls
60 lines (58 loc) · 2.53 KB
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
services:
# Local-only Traefik config: HTTP only, no ACME
traefik:
command:
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --providers.file.filename=/dynamic.yml
- --entrypoints.web.address=:80
- --api.dashboard=true
- --api.insecure=true
- --accesslog=true
- --accesslog.format=json
# Metrics (Prometheus)
- --entrypoints.metrics.address=:8082
- --metrics.prometheus=true
- --metrics.prometheus.entryPoint=metrics
# Tracing (OTLP; needs a collector if you want to export traces)
- --tracing=true
- --tracing.otlp=true
- --tracing.otlp.http.endpoint=http://localhost:4318
# If using Jaeger directly instead:
# - --tracing.jaeger=true
# - --tracing.jaeger.samplingServerURL=http://localhost:5778/sampling
# - --tracing.jaeger.samplingType=const
# - --tracing.jaeger.samplingParam=1.0
ports:
- "80:80"
- "8080:8080"
- "8082:8082" # metrics
volumes:
- ./containers/traefik/dynamic.local.yml:/dynamic.yml:ro
# Force routers to use only `web` (HTTP) and drop TLS in local
server:
labels:
- "traefik.http.routers.api.rule=PathPrefix(`/api`)"
- "traefik.http.routers.api.entrypoints=web"
- "traefik.http.routers.api.tls="
- "traefik.http.routers.api.middlewares=security-headers@file,rate-limit@file"
# Add a high-priority local router to override Host() rules from base
- "traefik.http.routers.api-local.rule=PathPrefix(`/api`)"
- "traefik.http.routers.api-local.entrypoints=web"
- "traefik.http.routers.api-local.priority=1000"
- "traefik.http.routers.api-local.tls="
- "traefik.http.routers.api-local.service=api"
- "traefik.http.routers.api-local.middlewares=security-headers@file,rate-limit@file"
client:
labels:
- "traefik.http.routers.client.rule=PathPrefix(`/`)"
- "traefik.http.routers.client.entrypoints=web"
- "traefik.http.routers.client.tls="
- "traefik.http.routers.client.middlewares=security-headers@file,rate-limit@file"
# Add a high-priority local router to override Host() rules from base
- "traefik.http.routers.client-local.rule=PathPrefix(`/`)"
- "traefik.http.routers.client-local.entrypoints=web"
- "traefik.http.routers.client-local.priority=1000"
- "traefik.http.routers.client-local.tls="
- "traefik.http.routers.client-local.service=client"
- "traefik.http.routers.client-local.middlewares=security-headers@file,rate-limit@file"