Independent testing Updated April 2026 387 self-hosting guides 5 VPS providers tested

guide

How to Self-Host Bitwarden on a VPS (Complete Guide)

Learn how to self-host Bitwarden on a VPS with a step-by-step 2026 guide covering install, configuration, and securing Bitwarden for reliable daily use.

How to Self-Host Bitwarden on a VPS (Complete Guide)

Bitwarden is a popular open-source password management solution that provides secure and easy access to passwords, making it a favored choice among developers and homelabbers. In this guide, we will walk you through the process of self-hosting Bitwarden on a Virtual Private Server (VPS) using Docker. Weโ€™ll also look at the top VPS providers that offer affordable options to set up your self-hosted solution.

1. Prerequisites

Before installing Bitwarden on your VPS, ensure that you have the following:

Here are some recommended VPS providers:

ProviderMonthly PriceRAMCPUStorage Options
Contabo VPS5.99 EUR/mo4 GB2 vCPU200 GB SSD
Hetzner Cloud4.15 EUR/mo2 GB1 vCPU20 GB SSD
DigitalOcean6 USD/mo1 GB1 vCPU25 GB SSD
Vultr6 USD/mo1 GB1 vCPU25 GB SSD
Linode (Akamai)5 USD/mo2 GB1 vCPU50 GB SSD

Explore the full VPS comparison.

2. Setting Up Your VPS

  1. Select Your VPS Provider: Choose a provider from the comparison table. For starters, Hetzner Cloud or Contabo are favored for their affordability and resources.

  2. Create an Instance: Set up a new server instance. Use the Ubuntu image and connect via SSH.

    ssh user@your-vps-ip
  3. Update the System:

    sudo apt update && sudo apt upgrade -y
  4. Install Docker and Docker Compose:

    sudo apt install -y docker.io docker-compose
    sudo systemctl enable docker
    sudo systemctl start docker

3. Installing Bitwarden

Now that your VPS is set up with Docker, follow these steps to install Bitwarden:

  1. Clone the Bitwarden Docker Repository:

    git clone https://github.com/bitwarden/server.git
    cd server
  2. Configure Environment Variables: You need to set up your domain and other parameters. Create a .env file in the server directory to customize your Bitwarden instance.

    cp .env.sample .env
    nano .env

    Update the following variables:

    # Your domain or subdomain
    API_DOMAIN=your-domain.com
    # Optional: Set an email for notifications
    SMTP_HOST=smtp.your-email.com
    SMTP_PORT=587
    [email protected]
    SMTP_PASS=your-email-password
  3. Start Bitwarden:

    Run Docker Compose to pull the necessary images and start the containers:

    docker-compose up -d
  4. Access Bitwarden: Open a web browser and navigate to https://your-domain.com. You should see the Bitwarden login and registration interface.

  5. Configure HTTPS (Optional but Recommended): To secure your instance, install a reverse proxy like Nginx and set up SSL with Letโ€™s Encrypt.

4. Best Practices

FAQs

Q1: Can I run Bitwarden on a VPS with low specifications?

While technically possible, running Bitwarden efficiently requires at least 2GB of RAM for a smooth experience. Using a VPS with lower specs can lead to performance issues, especially if multiple users are accessing the service simultaneously. Most users would find VPS options like Hetzner or Contabo secure and low-cost.

Q2: What are the security considerations when self-hosting Bitwarden?

Self-hosting Bitwarden allows for full control over your data, but it also comes with security responsibilities. Use HTTPS to encrypt data in transit. Regularly update your server and Bitwarden installation to patch any vulnerabilities. Additionally, consider implementing firewalls and monitoring tools for enhanced security.

Q3: Is there a way to scale my Bitwarden instance as my needs grow?

Absolutely! VPS providers like DigitalOcean or Contabo allow horizontal scaling, meaning you can upgrade your plan or add more resources (CPU and RAM) as needed. Switch to a larger instance through the providerโ€™s dashboard, and ensure that your Bitwarden instance can handle the increased load. Consider employing a backup strategy to preserve your data during such transitions.

By following this guide, you should have a fully functional Bitwarden instance running on your VPS. Start managing your passwords securely today!