feat: Add Vaultwarden config and set PUID to 1044

This commit is contained in:
2026-02-22 15:38:13 -05:00
parent f379885c9c
commit 880cc24bde
5 changed files with 235 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
version: '3.8'
services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
restart: always
# Run as the defined Synology user to prevent root file ownership
user: "${PUID}:${PGID}"
environment:
# General
- WEBSOCKET_ENABLED=true
- DOMAIN=${DOMAIN}
- SIGNUPS_ALLOWED=${SIGNUPS_ALLOWED}
# Email (Optional but recommended for invitations & 2FA)
- SMTP_HOST=${SMTP_HOST}
- SMTP_FROM=${SMTP_FROM}
- SMTP_SECURITY=${SMTP_SECURITY:-starttls}
- SMTP_PORT=${SMTP_PORT:-587}
- SMTP_USERNAME=${SMTP_USERNAME}
- SMTP_PASSWORD=${SMTP_PASSWORD}
# Admin Panel
- ADMIN_TOKEN=${ADMIN_TOKEN}
volumes:
- /volume1/docker/vaultwarden/data:/data:rw
ports:
- "8080:80" # Web UI
# Note: Vaultwarden integrates the WebSocket server into the main process in recent versions,
# so exposing port 3012 is no longer required for typical setups unless using reverse proxy splitting.