forked from Zeyu-Li/next-django-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtraefik.yml
51 lines (46 loc) · 1.18 KB
/
traefik.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
## STATIC CONFIGURATION
log:
level: INFO
api:
insecure: true
dashboard: true
entryPoints:
web:
address: ':80'
providers:
docker:
watch: true
endpoint: 'unix:///var/run/docker.sock'
file:
filename: 'traefik.yml'
## DYNAMIC CONFIGURATION
http:
routers:
local-frontend:
rule: 'Host(`next-django-template.test`)'
service: local-frontend
entryPoints:
- web
local-backend:
rule: 'Host(`api.next-django-template.test`)'
service: local-backend
entryPoints:
- web
mailhog:
rule: 'Host(`mail.next-django-template.test`)'
service: mailhog
entryPoints:
- web
services:
local-frontend:
loadBalancer:
servers:
- url: 'http://host.docker.internal:3000'
local-backend:
loadBalancer:
servers:
- url: 'http://host.docker.internal:8000'
mailhog:
loadBalancer:
servers:
- url: 'http://host.docker.internal:8025'