feat(docker-env2): add Traefik load-balancer config
This commit is contained in:
18
docker-env2/traefik/dynamic.yml
Normal file
18
docker-env2/traefik/dynamic.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
http:
|
||||
routers:
|
||||
central:
|
||||
rule: "PathPrefix(`/`)"
|
||||
service: central
|
||||
entryPoints:
|
||||
- web
|
||||
|
||||
services:
|
||||
central:
|
||||
loadBalancer:
|
||||
healthCheck:
|
||||
path: /health/active
|
||||
interval: 5s
|
||||
timeout: 3s
|
||||
servers:
|
||||
- url: "http://scadalink-env2-central-a:5000"
|
||||
- url: "http://scadalink-env2-central-b:5000"
|
||||
11
docker-env2/traefik/traefik.yml
Normal file
11
docker-env2/traefik/traefik.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
entryPoints:
|
||||
web:
|
||||
address: ":80"
|
||||
|
||||
api:
|
||||
dashboard: true
|
||||
insecure: true
|
||||
|
||||
providers:
|
||||
file:
|
||||
filename: /etc/traefik/dynamic.yml
|
||||
Reference in New Issue
Block a user