-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
47 lines (42 loc) · 1.19 KB
/
docker-compose.yaml
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
services:
traefik:
image: traefik:v2.10
container_name: traefik
command:
- "--entrypoints.web.address=:80"
- "--providers.docker=true"
- "--api.insecure=true"
ports:
- "80:80"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
networks:
- web
labels:
- "traefik.http.routers.traefik.rule=Host(`traefik.gahigi.ini.rw`)"
- "traefik.http.routers.traefik.service=api@internal"
- "traefik.http.routers.traefik.entrypoints=web"
frontend:
build: ./frontend
container_name: frontend
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=Host(`gahigi.ini.rw`)"
- "traefik.http.services.frontend.loadbalancer.server.port=3000"
- "traefik.http.routers.frontend.entrypoints=web"
networks:
- web
backend:
build: ./backend
container_name: backend
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend.rule=Host(`apigahigi.ini.rw`)"
- "traefik.http.services.backend.loadbalancer.server.port=4999"
- "traefik.http.routers.backend.entrypoints=web"
networks:
- web
networks:
web:
external: false
~