-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.47 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
53
54
55
56
57
58
59
version: "3.5"
services:
traefik:
image: traefik:v2.9
container_name: traefik
command:
# - --log.level=DEBUG
- --api.dashboard
- --api.insecure
- --providers.docker
- --providers.docker.exposedbydefault=false
- --entrypoints.http.address=:80
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- nizhib
ports:
- "80:80"
- "8080:8080"
labels:
- traefik.enable=true
- traefik.http.routers.api.rule=Host(`traefik.localhost`)
- traefik.http.routers.api.entrypoints=http
- traefik.http.routers.api.service=api@internal
portrait-front:
build:
context: front
dockerfile: Dockerfile
networks:
nizhib:
aliases:
- portrait.localhost
expose:
- 80
labels:
- traefik.enable=true
- traefik.http.routers.portrait-front.entrypoints=http
- traefik.http.routers.portrait-front.rule=Host(`portrait.localhost`)
portrait-back:
build:
context: back
dockerfile: Dockerfile
networks:
- nizhib
expose:
- 5000
labels:
- traefik.enable=true
- traefik.http.routers.portrait-back.entrypoints=http
- traefik.http.routers.portrait-back.rule=Host(`portrait.localhost`) && PathPrefix(`/api`)
- traefik.http.routers.portrait-back.middlewares=remove-api
- traefik.http.middlewares.remove-api.stripprefix.prefixes=/api
networks:
nizhib:
name: nizhib