add docker compose

This commit is contained in:
theo
2025-12-22 18:16:13 +01:00
parent 4377433227
commit d7af86bc61
3 changed files with 38 additions and 0 deletions

36
docker-compose.yml Normal file
View File

@@ -0,0 +1,36 @@
services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
restart: unless-stopped
environment:
- DOMAIN=${DOMAIN}
- SIGNUPS_ALLOWED=false
- ADMIN_TOKEN=${ADMIN_TOKEN}
- WEBSOCKET_ENABLED=true
# Limite de tentatives de connexion
- LOGIN_RATELIMIT_MAX_BURST=10
- LOGIN_RATELIMIT_SECONDS=60
# Limite d'envoi d'emails (récupération mot de passe)
- EMAIL_ATTEMPTS_LIMIT=3
- EMAIL_EXPIRATION_TIME=600
# Timeout de session
- EXTENDED_LOGGING=true
# Notifications
- SENDS_ALLOWED=true
# - EMERGENCY_ACCESS_ALLOWED=true
labels:
- "traefik.enable=true"
- "traefik.http.routers.ntfy.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.ntfy.entrypoints=websecure"
- "traefik.http.routers.ntfy.tls=true"
- "traefik.http.routers.ntfy.tls.certresolver=letsencrypt"
- "traefik.http.services.ntfy.loadbalancer.server.port=80"
volumes:
- ./data:/data
networks:
- traefik-net
networks:
traefik-net:
external: true