-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (28 loc) · 1.5 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
version: "3.7"
services:
traefik-errorserver:
image: traefik-errorserver:latest
container_name: traefik-errorserver
restart: unless-stopped
networks:
# replace proxy with the network over which Traefik communicates with other containers.
- proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.error-router.rule=HostRegexp(`{host:.+}`)"
- "traefik.http.routers.error-router.priority=1"
- "traefik.http.routers.error-router.entrypoints=http" # <== Replace `http` with whatever you :80 entrypoint name is.
- "traefik.http.routers.error-router.middlewares=error-pages-middleware"
- "traefik.http.routers.error-router-secure.rule=HostRegexp(`{host:.+}`)"
- "traefik.http.routers.error-router-secure.entrypoints=https" # <== Replace `https` with whatever you :443 entrypoint name is.
- "traefik.http.routers.error-router-secure.priority=1"
- "traefik.http.routers.error-router-secure.tls=true"
- "traefik.http.routers.error-router-secure.middlewares=error-pages-middleware"
- "traefik.http.middlewares.error-pages-middleware.errors.status=400-599"
- "traefik.http.middlewares.error-pages-middleware.errors.service=error-pages-service"
- "traefik.http.middlewares.error-pages-middleware.errors.query=/{status}.html"
- "traefik.http.services.error-pages-service.loadbalancer.server.port=80"
networks:
# Replace proxy with the network you specified above
proxy:
external: true