Self-Host Vaultwarden with Docker Compose
Vaultwarden is an alternative implementation of the Bitwarden server API written in Rust. It is lightweight, runs in under 30MB of RAM, and is fully compatible with official Bitwarden browser extensions and mobile apps.
Minimum Hardware Requirements
version: '3.8'
services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
restart: unless-stopped
ports:
- "80:80"
environment:
- NODE_ENV=production
- TZ=UTC
volumes:
- vaultwarden_data:/data
volumes:
vaultwarden_data:
driver: local
docker-compose.yml and run:
docker compose up -d
Key Environment Variables
Recommended baseline environment configuration for this container
| Variable Name | Default / Recommended Value |
|---|---|
| WEBSOCKET_ENABLED | true |
| SIGNUPS_ALLOWED | true |
| ADMIN_TOKEN | secure_argon2_or_random_token |
VPS RAM & Server Sizing Calculator
Planning to run Vaultwarden alone or alongside other self-hosted containers on one VPS? Toggle apps to calculate your exact RAM needs with a 25% safety buffer.
Matched Cloud VPS Tiers for Selected Workload:
Replaces 1Password
SaaS password and secret management service locking teams into annual per-seat licensing contracts.
More Security Apps View All →
Compare Vaultwarden
Benchmark specs head-to-head with other open-source alternatives
Compare Vaultwarden Side-by-Side
Select any open-source tool from the dropdown to run a hardware, memory, and popularity benchmark against Vaultwarden.