-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
49 lines (47 loc) · 1.63 KB
/
docker-compose.prod.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
version: '3.9'
services:
traefik:
container_name: traefik
image: traefik:v2.9.8
restart: "on-failure"
depends_on:
- error-pages
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
command:
- --api.dashboard=true
- --providers.docker=true
- --providers.docker.exposedbydefault=false
- --entrypoints.web.address=:80
ports:
- "80:80"
nginx:
container_name: nginx
image: nginx
restart: "on-failure"
labels:
traefik.enable: true
traefik.http.routers.nginx.rule: Host(`web.localhost`)
traefik.http.routers.nginx.entrypoints: web
traefik.http.routers.nginx.middlewares: exceptions
error-pages:
container_name: error-pages
image: "ghcr.io/patbec/traefik-error-pages:latest"
restart: "on-failure"
environment:
PROXY_NAME: traefik-test
PROXY_LOCATION: Bavaria
PROXY_SUPPORT_MESSAGE: |
If you need further assistance with this issue,
you can contact the support. They will forward
your request to the appropriate department.
PROXY_SUPPORT_MAIL: [email protected]
labels:
traefik.enable: true
traefik.http.services.error-pages-service.loadbalancer.server.port: 8090
traefik.http.middlewares.exceptions.errors.status: 400-599
traefik.http.middlewares.exceptions.errors.service: error-pages-service
traefik.http.middlewares.exceptions.errors.query: /{status}.html
traefik.http.routers.error-pages-routers.rule: HostRegexp(`{host:.+}`)
traefik.http.routers.error-pages-routers.priority: 1
traefik.http.routers.error-pages-routers.entrypoints: web