-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
52 lines (48 loc) · 1.43 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
services:
traefik:
image: docker.io/traefik:v3.0
ports:
- "80:80"
- "8070:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./traefik.yml:/etc/traefik/traefik.yml
restart: unless-stopped
networks:
vpcbr:
ipv4_address: 172.24.0.254
docauposte2_vpcbr:
ipv4_address: 172.21.0.254
efnc_vpcbr:
ipv4_address: 172.22.0.254
opsign_vpcbr:
ipv4_address: 172.23.0.254
homepage:
image: docker.io/nginx # Example using nginx to serve custom error pages
volumes:
- ./html:/usr/share/nginx/html # Mount the directory containing your error pages
- ./default.conf:/etc/nginx/conf.d/default.conf # Mount a custom nginx config file
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.homepage.rule=PathPrefix(`/`)"
- "traefik.http.routers.homepage.entrypoints=web"
- "traefik.http.services.traefik-home.loadbalancer.server.port=80"
- "traefik.http.routers.homepage.middlewares=strip-homepage-prefix"
- "traefik.http.middlewares.strip-homepage-prefix.stripPrefix.prefixes=/"
networks:
vpcbr:
ipv4_address: 172.24.0.253
networks:
vpcbr:
driver: bridge
ipam:
config:
- subnet: 172.24.0.0/16
gateway: 172.24.0.1
docauposte2_vpcbr:
external: true
efnc_vpcbr:
external: true
opsign_vpcbr:
external: true