2023-12-24 18:54:49 +00:00
|
|
|
---
|
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
bitwarden:
|
|
|
|
image: vaultwarden/server:latest
|
|
|
|
container_name: bitwarden
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
environment:
|
|
|
|
- DOMAIN_ROOT=${DOMAIN_ROOT}
|
|
|
|
|
|
|
|
labels:
|
|
|
|
- "traefik.http.services.bitwarden.loadbalancer.server.port=80"
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.bitwarden.rule=Host(`bitwarden.${DOMAIN_ROOT}`)"
|
|
|
|
- 'traefik.http.routers.bitwarden.middlewares=authelia@docker'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- vaultwarden_data:/data
|
2023-12-26 22:40:54 +00:00
|
|
|
|
2023-12-24 18:54:49 +00:00
|
|
|
networks:
|
2023-12-26 22:40:54 +00:00
|
|
|
- web
|
|
|
|
|
|
|
|
networks:
|
|
|
|
web:
|
|
|
|
external: true
|
2023-12-24 18:54:49 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
vaultwarden_data:
|
|
|
|
external: true
|
|
|
|
|