feat: add traefik tcp load balancer

This commit is contained in:
Alfredo Di Stasio
2026-06-30 09:50:18 +02:00
parent 786fa78ebd
commit 7dfc23d69e
13 changed files with 393 additions and 129 deletions
+24
View File
@@ -0,0 +1,24 @@
services:
traefik:
image: traefik:v3.7.5
container_name: tcp-loadbalancer-traefik
restart: unless-stopped
command:
- --configFile=/etc/traefik/traefik.yml
ports:
- "443:8443/tcp"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./config:/etc/traefik:ro
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "traefik", "healthcheck", "--ping"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s