Updated Bitwarden docker file to have Traefik Labels

This commit is contained in:
Luke Else 2022-11-03 16:16:12 +00:00
parent e59a398406
commit 86349c4b76

View File

@ -12,6 +12,16 @@ services:
- bitwarden
depends_on:
- traefik
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.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"
restart: unless-stopped
networks: