-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
49 lines (47 loc) · 1.11 KB
/
docker-compose.yaml
File metadata and controls
49 lines (47 loc) · 1.11 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
services:
ping:
container_name: ping
image: ping-app:latest
expose:
- "8080"
labels:
- "traefik.enable=true"
- "traefik.http.routers.ping.rule=PathPrefix(`/ping`)"
- "traefik.http.services.ping.loadbalancer.server.port=8080"
networks:
- backend
traefic:
container_name: traefic
image: traefik:v3
command:
- "--api.dashboard=true"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--log.level=INFO"
ports:
- "80:80"
- "8080:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- backend
- frontend
depends_on:
- ping
networks:
backend:
ipam:
driver: default
config:
- subnet: 10.1.1.0/24
driver_opts:
com.docker.network.bridge.name: privnet
frontend:
ipam:
driver: default
config:
- subnet: 192.168.100.0/24
driver_opts:
com.docker.network.bridge.name: pubnet