From 7f71ba7bcfb53c9a0500f1d2399eb296469fa83d Mon Sep 17 00:00:00 2001 From: Benjamin Durham <33912370+Bencey@users.noreply.github.com> Date: Fri, 5 Feb 2021 12:07:52 +1300 Subject: [PATCH] Update bitwarden for traefikv2 labels --- manuscript/recipes/bitwarden.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/manuscript/recipes/bitwarden.md b/manuscript/recipes/bitwarden.md index 3f9b54d..2d14b22 100644 --- a/manuscript/recipes/bitwarden.md +++ b/manuscript/recipes/bitwarden.md @@ -55,12 +55,22 @@ services: - /var/data/bitwarden:/data/:rw deploy: labels: - - traefik.enable=true + # traefik common + - "traefik.enable=true" + - "traefik.docker.network=traefik_public" + # traefikv1 - traefik.web.frontend.rule=Host:bitwarden.example.com - traefik.web.port=80 - traefik.hub.frontend.rule=Host:bitwarden.example.com;Path:/notifications/hub - traefik.hub.port=3012 - - traefik.docker.network=traefik_public + + #traefikv2 + - "traefik.http.routers.bitwarden.rule=Host(`bitwarden.example.com`)" + - "traefik.http.services.bitwarden.loadbalancer.server.port=80" + - "traefik.http.routers.bitwarden.service=bitwarden" + - "traefik.http.routers.bitwarden-websocket.rule=Host(`bitwarden.example.com`) && Path(`/notifications/hub`)" + - "traefik.http.routers.bitwarden-websocket.service=bitwarden-websocket" + - "traefik.http.services.bitwarden-websocket.loadbalancer.server.port=3012" networks: - traefik_public @@ -89,4 +99,4 @@ Once you've created your account, jump over to https://bitwarden.com/#download a [^2]: As mentioned above, readers should refer to the [dani-garcia/bitwarden_rs wiki](https://github.com/dani-garcia/bitwarden_rs) for details on customizing the behaviour of Bitwarden. [^3]: The inclusion of Bitwarden was due to the efforts of @gkoerk in our [Discord server](http://chat.funkypenguin.co.nz)- Thanks Gerry! ---8<-- "recipe-footer.md" \ No newline at end of file +--8<-- "recipe-footer.md"