Password & Secrets⭐ 42k+ GitHubLicense: AGPL v3

How to Self-Host Vaultwarden with Docker Compose

Open-Source Alternative to: 1Password ($8/seat/mo) & Bitwarden

Vaultwarden provides a full Bitwarden API implementation in Rust. It works natively with official Bitwarden browser extensions, iOS, Android, and desktop apps with zero license fees.

MINIMUM HARDWARE
512 MB RAM, 1 vCPU, 5 GB Disk
ESTIMATED SAVINGS
$960/year
OFFICIAL REPOSITORY
github.com/dani-garcia/vaultwarden ↗

Production Docker Compose File

Copy this tested configuration directly into your server's directory:

🐳 docker-compose.yml
version: '3'
services:
  vaultwarden:
    image: vaultwarden/server:latest
    restart: always
    ports:
      - '8080:80'
    environment:
      - WEBSOCKET_ENABLED=true
      - SIGNUPS_ALLOWED=true
    volumes:
      - ./vw-data:/data

Quick Deployment Steps

1. docker run -d --name vaultwarden -v ./vw-data:/data -p 8080:80 vaultwarden/server:latest 2. Place behind Caddy or Nginx reverse proxy with SSL enabled. 3. Open your domain, register your master password, and install the Bitwarden extension.

Key Advantages & Trade-Offs

✓ Why Self-Host Vaultwarden?

  • Absurdly low memory footprint (<50 MB RAM at runtime)
  • Fully compatible with all official Bitwarden apps and browser extensions
  • Includes premium features for free (TOTP authenticator codes, emergency access)

⚠ What to Keep in Mind

  • Requires HTTPS (SSL certificate) to enable browser autofill APIs
  • Requires disciplined regular backup of SQLite/PostgreSQL data file

More Self-Hosted Alternatives

Knowledge & Workspace
AppFlowy
Replaces Notion ($10/seat/mo)
Project Management
Plane
Replaces Jira ($8.50/seat/mo) & Linear
No-Code Database
NocoDB
Replaces Airtable ($20/seat/mo)