-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (46 loc) · 1.2 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
version: '2'
services:
traefik:
image: traefik
ports:
- "82:80"
- "8082:8080"
volumes:
- "./traefik.toml:/etc/traefik/traefik.toml"
- "/var/run/docker.sock:/var/run/docker.sock"
frontend:
build: ./frontend
image: cheztone/traefik-demo-front
expose:
- "80"
labels:
- "traefik.frontend.rule=Host:${TRAEFIK_HOST}"
- "traefik.port=80"
backend1:
build: ./backend
image: cheztone/traefik-demo-back
labels:
- "traefik.frontend.rule=Host:${TRAEFIK_HOST};Path:/backend"
- "traefik.backend=backend"
- "traefik.port=8080"
backend2:
build: ./backend
image: cheztone/traefik-demo-back
labels:
- "traefik.frontend.rule=Host:${TRAEFIK_HOST};Path:/backend"
- "traefik.backend=backend"
- "traefik.port=8080"
backend3:
build: ./backend
image: cheztone/traefik-demo-back
labels:
- "traefik.frontend.rule=Host:${TRAEFIK_HOST};Path:/backend"
- "traefik.backend=backend"
- "traefik.port=8080"
backend4:
build: ./backend
image: cheztone/traefik-demo-back
labels:
- "traefik.frontend.rule=Host:${TRAEFIK_HOST};Path:/backend"
- "traefik.backend=backend"
- "traefik.port=8080"