2023-10-13 15:03:14 +02:00
|
|
|
services:
|
|
|
|
vaultwarden:
|
|
|
|
image: vaultwarden/server:1.26.0-alpine
|
|
|
|
container_name: vaultwarden
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- $DATA/vaultwarden:/data
|
|
|
|
environment:
|
2023-12-26 16:11:37 +01:00
|
|
|
- TZ=Europe/Paris
|
2023-10-13 15:03:14 +02:00
|
|
|
- DATABASE_URL=${VAULT_DATABASE_URL}
|
|
|
|
- SIGNUPS_ALLOWED=false
|
|
|
|
- DOMAIN=https://vault.bhasher.com
|
|
|
|
- ADMIN_TOKEN=${VAULT_ADMIN}
|
|
|
|
- SMTP_HOST=bdubois.io
|
|
|
|
- SMTP_FROM=no-reply@bhasher.com
|
|
|
|
- SMTP_PORT=587
|
|
|
|
- SMTP_SECURITY=starttls
|
|
|
|
- SMTP_USERNAME=${SMTP_USER}
|
|
|
|
- SMTP_PASSWORD=${SMTP_PASSWORD}
|
2023-12-26 14:45:04 +01:00
|
|
|
- LOG_LEVEL=error
|
|
|
|
- EXTENDED_LOGGING=true
|
|
|
|
- LOG_FILE=/data/vaultwarden.log
|
2023-10-13 15:03:14 +02:00
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.vaultwarden.rule=Host(`vault.bhasher.com`)"
|
2023-12-19 16:35:34 +01:00
|
|
|
- "traefik.http.routers.vaultwarden.entrypoints=internalsecure,externalsecure"
|
2023-10-13 15:03:14 +02:00
|
|
|
- "traefik.http.services.vaultwarden.loadbalancer.server.port=80"
|
|
|
|
- "traefik.http.routers.vaultwarden.tls=true"
|
|
|
|
- "traefik.http.routers.vaultwarden.tls.certresolver=http"
|
|
|
|
networks:
|
|
|
|
- external
|
|
|
|
- storage
|
|
|
|
|
|
|
|
networks:
|
|
|
|
external:
|
|
|
|
external: true
|
|
|
|
storage:
|
|
|
|
external: true
|