Free & Open-Source DevOps Hub: 100% Valid Docker Compose configs & verified hardware benchmarks Try VPS RAM Calculator →
security ⭐ Featured Self-Hosted Stack Docker: vaultwarden/server:latest

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.

GitHub Stars
★ 38,900
GitHub Forks
2,100
Language
Rust
License
AGPL-3.0
Last Commit
2 days ago

Minimum Hardware Requirements

RAM
Minimum Memory
256 MB
CPU
Processor
1 Core(s)
DISK
Storage Required
5 GB NVMe
docker-compose.yml
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
Save to 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
⚡ Embedded DevOps Micro-Tool

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.

Total Base RAM
Recommended (+25%)
CPU Cores Needed
Disk Storage

Matched Cloud VPS Tiers for Selected Workload:

💰 Commercial Alternative

Replaces 1Password

SaaS password and secret management service locking teams into annual per-seat licensing contracts.

1Password Price: $19.95/mo
Self-Hosted VPS: $5.00/mo
3-Year Savings: $538.20
View All 1Password Alternatives

Compare Vaultwarden

Benchmark specs head-to-head with other open-source alternatives

Interactive Tool Matchup

Compare Vaultwarden Side-by-Side

Select any open-source tool from the dropdown to run a hardware, memory, and popularity benchmark against Vaultwarden.

VS
Instant Benchmark Summary Open Full Comparison Page →

RAM
CPU
License

RAM
CPU
License