feat(docker-env2): add Traefik load-balancer config

This commit is contained in:
Joseph Doherty
2026-05-24 07:17:26 -04:00
parent 4b797c9f69
commit 9c6abc6517
2 changed files with 29 additions and 0 deletions

View 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"

View File

@@ -0,0 +1,11 @@
entryPoints:
web:
address: ":80"
api:
dashboard: true
insecure: true
providers:
file:
filename: /etc/traefik/dynamic.yml