Add Traefik labels for improved routing configuration in docker-compose
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user