Add Traefik labels for improved routing configuration in docker-compose

This commit is contained in:
2026-01-06 15:24:22 +01:00
parent abac91df4e
commit 323e28760b

View File

@@ -10,9 +10,18 @@ services:
- ./Cargo.lock:/data/Cargo.lock
- ./Cargo.toml:/data/Cargo.toml
- /etc/localtime:/etc/localtime:ro
labels:
- "traefik.enable=true"
- "traefik.docker.network=vlan250"
- "traefik.http.routers.bhs.rule=Host(`bhs.qosnet.it`)"
- "traefik.http.routers.bhs.entrypoints=websecure"
- "traefik.http.routers.bhs.tls=true"
- "traefik.http.routers.bhs.tls.certresolver=le"
- "traefik.http.services.bhs.loadbalancer.server.port=80"
environment:
- TZ="Europe/Rome"
- CARGO_HOME="/data/.cargo/"
tty: true
stdin_open: true
ports: