Bitwarden is one of the best password managers, and Vaultwarden is the open-source server implementation. The catch with self-hosting historically: a password manager needs to be reachable from every device, with HTTPS, with a stable URL โ exactly the things Tailscale solves. The result is an enterprise-grade password manager, fully private to your tailnet, that works on every device you own.
https://vault.tail-abc.ts.net reachable from any tailnet deviceBitwarden's apps speak the same API to your private server as they would to bitwarden.com. Vaults are E2E-encrypted on each client; Vaultwarden never sees the plaintext. The dashed arrow to backups is your responsibility โ vault loss = passwords lost.
services:
ts-vault:
image: tailscale/tailscale:latest
hostname: vault
environment:
- TS_AUTHKEY=${TS_AUTHKEY?required}
- TS_EXTRA_ARGS=--advertise-tags=tag:server
- TS_SERVE_CONFIG=/config/serve.json
volumes:
- ts-state:/var/lib/tailscale
- ./serve-config.json:/config/serve.json
cap_add: [net_admin, sys_module]
vaultwarden:
image: vaultwarden/server:latest
network_mode: service:ts-vault
environment:
- DOMAIN=https://vault.tail-abc.ts.net
- SIGNUPS_ALLOWED=true # turn off after creating accounts
- WEBSOCKET_ENABLED=true
volumes:
- vault-data:/data
volumes:
ts-state:
vault-data:
// serve-config.json
{
"TCP": { "443": { "HTTPS": true } },
"Web": {
"${TS_CERT_DOMAIN}:443": {
"Handlers": { "/": { "Proxy": "http://127.0.0.1:80" } }
}
}
}
export TS_AUTHKEY="tskey-..."
docker compose up -d
Visit https://vault.tail-abc.ts.net. Click "Create Account." Create accounts for everyone in your household.
After everyone is signed up, edit the docker-compose to set SIGNUPS_ALLOWED=false and restart. Now nobody else can register, even if they got the URL.
Install Bitwarden (not Vaultwarden โ they're protocol-compatible) on each device:
On the login screen, tap Settings (gear icon) โ Self-hosted. Enter https://vault.tail-abc.ts.net. Save.
Log in normally. The apps connect to your private server.
{ "action": "accept", "src": ["group:family"], "dst": ["tag:server:443"] }
Now only family members on the tailnet can reach Vaultwarden. Even if someone leaked the URL, off-tailnet visitors can't connect.
Your password vault is now your responsibility. Back up the vault-data volume regularly:
docker run --rm \
-v vaultwarden_vault-data:/data:ro \
-v $(pwd):/backup \
alpine \
tar czf /backup/vault-backup-$(date +%Y%m%d).tar.gz -C /data .
Schedule with cron / systemd timer. Store the resulting tarballs somewhere off the home server โ encrypted external drive, offsite NAS, B2/S3 with restic.
https://... URL with no trailing slash.WEBSOCKET_ENABLED=true and that the proxy passes WebSocket upgrade headers.SIGNUPS_ALLOWED.