Created
April 14, 2022 08:33
-
-
Save tomasmetal23/7ee825203bbcd2b557f84bfe49344962 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
services: | |
bitwarden: | |
image: vaultwarden/server:latest | |
container_name: bitwarden | |
restart: always | |
volumes: | |
- ./bw-data:/data | |
environment: | |
- ADMIN_TOKEN=token | |
- WEBSOCKET_ENABLED=true | |
networks: | |
- proxy | |
labels: | |
- "traefik.enable=true" | |
- "traefik.docker.network=proxy" | |
# Entry Point for https | |
- "traefik.http.routers.bitwarden-secure.entrypoints=websecure" | |
- "traefik.http.routers.bitwarden-secure.tls.certresolver=lets-encr" | |
- "traefik.http.routers.bitwarden-secure.rule=Host(`bitwarden.domain.com`)" | |
- "traefik.http.routers.bitwarden-secure.service=bitwarden-service" | |
- "traefik.http.services.bitwarden-service.loadbalancer.server.port=80" | |
# websocket | |
- "traefik.http.routers.bitwarden-ws.entrypoints=websecure" | |
- "traefik.http.routers.bitwarden-ws.tls.certresolver=lets-encr" | |
- "traefik.http.routers.bitwarden-ws.rule=Host(`bitwarden.domain.com`) && Path(`/notifications/hub`)" | |
- "traefik.http.middlewares.bitwarden-ws=bw-stripPrefix@file" | |
- "traefik.http.routers.bitwarden-ws.service=bitwarden-websocket" | |
- "traefik.http.services.bitwarden-websocket.loadbalancer.server.port=3012" | |
networks: | |
proxy: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment