diff --git a/opt/template.yml b/opt/template.yml new file mode 100644 index 0000000..8d4d213 --- /dev/null +++ b/opt/template.yml @@ -0,0 +1,25 @@ + +services: + vaultwarden: + image: vaultwarden/server:latest + container_name: 002-bitwarden + restart: unless-stopped + ports: + - "8080:80" + environment: + - WEBSOCKET_ENABLED=true + - SIGNUPS_ALLOWED=false # Désactivez après création compte admin + - ADMIN_TOKEN=LaPlusBelleDesapplisDeMotDepasseEnAutoHeberg # Générez un token fort + labels: + - com.centurylinklabs.watchtower.enable=true # Active updates + - com.centurylinklabs.watchtower.schedule=0 0 22 * * * # Tous les jours 4h + + volumes: + - /data/bitwarden:/data + networks: + - 001-stack-npm_nginx-proxy + # Pas de ports exposés : accès uniquement via NPM + +networks: + 001-stack-npm_nginx-proxy: + external: true # Réseau créé par NPM