Updated Bitwarden docker file to have Traefik Labels
This commit is contained in:
parent
e59a398406
commit
86349c4b76
@ -12,6 +12,16 @@ services:
|
|||||||
- bitwarden
|
- bitwarden
|
||||||
depends_on:
|
depends_on:
|
||||||
- traefik
|
- 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
|
restart: unless-stopped
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
Loading…
Reference in New Issue
Block a user