-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.override.yml-cert
29 lines (27 loc) · 1.24 KB
/
docker-compose.override.yml-cert
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
# Docker Compose override file for TLS with custom, statically generated
# certificate.
services:
traefik:
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entryPoint.scheme=https"
- "--entrypoints.web.http.redirections.entrypoint.permanent=true"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
# EXTRA lines to make traefik use the config file from bind mount
- "--providers.file.directory=/etc/traefik"
- "--providers.file.watch=true"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./config/traefik:/etc/traefik:ro"
varfish-web:
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.xforward.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.varfish-web.entrypoints=web,websecure"
- "traefik.http.routers.varfish-web.middlewares=xforward"
- "traefik.http.routers.varfish-web.rule=HostRegexp(`{catchall:.+}`)"
- "traefik.http.services.varfish-web.loadbalancer.server.port=8080"
- "traefik.http.routers.varfish-web.tls=true"