Featured project

๐Ÿ” Self-hosted Vaultwarden

Run a Bitwarden-compatible password manager on your tailnet. Use the official Bitwarden mobile/desktop apps and browser extensions โ€” they all point at your private server.

Featured Self-Hosted Intermediate ~1 hr Prereqs: M4

Why this project

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.

Who this helps

What you get

CLIENTS PRIVATE EDGE HOST ๐ŸŒ browser extBitwarden ๐Ÿ“ฑ mobileBitwarden app ๐Ÿ’ป desktopBitwarden app ๐Ÿ”’ Tailscale Serve ยท ACL: group:family onlyvault.tail-abc.ts.net ยท E2E encrypted vault never decrypted server-side ๐Ÿ” Vaultwardentag:serverSQLite db ๐Ÿ’พ backupsrestic / B2 / S3offsite, encrypted

Bitwarden'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.

Prerequisites

Steps

Bring it up via the sidecar pattern ~10 min

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

Create your accounts ~5 min

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.

Configure the Bitwarden apps ~5 min per device

Install Bitwarden (not Vaultwarden โ€” they're protocol-compatible) on each device:

  • Browser extension (Chrome / Firefox / Safari)
  • Mobile app (iOS / Android)
  • Desktop app (Mac / Windows / Linux)

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.

Tighten the ACLs ~3 min

{ "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.

Set up backups ~10 min

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.

Verify

Common issues

Caveats

Where this leads