Updated Development container to use Traefik labels

This commit is contained in:
2022-11-03 16:23:23 +00:00
parent bd79b17c7f
commit 566dd8c965
3 changed files with 26 additions and 6 deletions

View File

@ -15,13 +15,13 @@ services:
labels:
## Expose Bitwarden Through Trefik ##
- "traefik.enable=true" # <== Enable traefik to proxy this container
- "traefik.http.routers.containername.rule=Host(`bitwarden.luke-else.co.uk`) || Host(`www.bitwarden.luke-else.co.uk`)"
- "traefik.http.routers.containername.entrypoints=http"
- "traefik.http.routers.containername.middlewares=redirect@file"
- "traefik.http.routers.bitwarden.rule=Host(`bitwarden.luke-else.co.uk`) || Host(`www.bitwarden.luke-else.co.uk`)"
- "traefik.http.routers.bitwarden.entrypoints=http"
- "traefik.http.routers.bitwarden.middlewares=redirect@file"
- "traefik.http.routers.containername-secured.rule=Host(`bitwarden.luke-else.co.uk`) || Host(`www.bitwarden.luke-else.co.uk`)"
- "traefik.http.routers.containername-secured.entrypoints=https"
- "traefik.http.routers.containername-secured.tls.certresolver=mytlschallenge"
- "traefik.http.routers.bitwarden-secured.rule=Host(`bitwarden.luke-else.co.uk`) || Host(`www.bitwarden.luke-else.co.uk`)"
- "traefik.http.routers.bitwarden-secured.entrypoints=https"
- "traefik.http.routers.bitwarden-secured.tls.certresolver=mytlschallenge"
restart: unless-stopped
networks: