homelab/jafner-tools/config/vaultwarden/docker-compose.yml

21 lines
569 B
YAML
Raw Normal View History

2022-02-08 22:29:15 -08:00
version: '3'
services:
vaultwarden:
image: vaultwarden/server:latest
2022-04-29 11:49:50 -07:00
container_name: vaultwarden_vaultwarden
restart: "no"
2022-02-25 15:59:35 -08:00
env_file:
- .env
2022-02-08 22:29:15 -08:00
networks:
- web
volumes:
2022-02-25 15:59:35 -08:00
- $DOCKER_DATA/data:/data
2022-02-08 22:29:15 -08:00
labels:
- traefik.http.routers.vaultwarden.rule=Host(`bitwarden.jafner.tools`)
- traefik.http.routers.vaultwarden.tls.certresolver=lets-encrypt
- traefik.http.routers.vaultwarden.tls.options=tls12@file
- traefik.http.routers.vaultwarden.middlewares=securityheaders@file
2022-02-08 22:29:15 -08:00
networks:
web:
external: true