VPS Provider

Vaultwarden on a VPS: Docker setup, backups and cost

Published · updated

Vaultwarden is a Bitwarden-compatible server written in Rust that runs as one Docker container, and the official Bitwarden apps and browser extensions connect to it. On a VPS it needs a domain name, HTTPS in front of it and a backup job; a VPS with 1 vCPU, 1 GB of memory and 20 GB of NVMe is enough for a family or a small team, and on our price list it costs $4.60 a month.

The Vaultwarden and Bitwarden facts below come from their own documentation and price pages as we read them on 27 November 2026, when the latest Vaultwarden release was 1.37.5. Our prices are from our price list on the same day, per month and without tax.

Vaultwarden or the official Bitwarden server

Vaultwarden is not made by Bitwarden. Its README says the project "is not associated with Bitwarden or Bitwarden, Inc.", and it asks you not to take Vaultwarden problems to Bitwarden's support. It speaks the same API, so you use the normal Bitwarden apps and point them at your own address.

Bitwarden also lets you host its own server. The standard install asks for at least 2 GB of memory and 12 GB of storage, recommends 4 GB and 25 GB, and ships with a Microsoft SQL Server Express database. Its smaller "lite" version needs about 200 MB of memory, but Bitwarden says it is meant for personal use and home labs, not for business. Both need an installation ID and key from Bitwarden, and an organization can be moved to a self-hosted server only on the Families or Enterprise plan.

Vaultwarden needs no key from anyone. It stores everything in one SQLite file by default, and its wiki calls SQLite the most used and tested option, recommended for most users; MySQL and PostgreSQL also work.

How big a server Vaultwarden needs

Vaultwarden publishes no minimum size. A password vault is small: the database grows with the number of items, and the disk fills only if people upload file attachments or use Send. These sizes are our suggestion.

VPS sizeForPer month
1 vCPU, 1 GB, 20 GB NVMeVaultwarden and a reverse proxy, for a family or a small team$4.60
1 vCPU, 2 GB, 40 GB NVMeVaultwarden next to a few other small containers$6.67
2 vCPU, 4 GB, 40 GB NVMeThe official Bitwarden server, at its recommended memory$11.74

Each server has a dedicated public IPv4 address and a 1 Gbit/s port. Choose Ubuntu 24.04 LTS or Debian 12, the systems Docker supports from our list, and install Docker from Docker's own repository.

Run it with Docker Compose

The image is vaultwarden/server, also published on ghcr.io and quay.io. Inside the container Vaultwarden listens on port 80 and keeps all its data in /data, which you mount from a folder on the server. A compose file needs little more than that:

services:
  vaultwarden:
    image: vaultwarden/server:latest
    container_name: vaultwarden
    restart: unless-stopped
    environment:
      DOMAIN: "https://vault.example.com"
      SIGNUPS_ALLOWED: "true"
    volumes:
      - ./vw-data/:/data/
    ports:
      - 127.0.0.1:8000:80

Keep 127.0.0.1 in the port line, as the README does. Docker routes traffic to published ports before ufw's rules apply, so a line like 80:80 puts Vaultwarden on the internet over plain HTTP even though our firewall starts with only SSH open. With 127.0.0.1 only a reverse proxy on the same server can reach it.

DOMAIN is the full address with https://. The compose example in the wiki calls it required behind a reverse proxy, and attachments do not work properly without it.

HTTPS is not optional

The web vault uses the browser's Web Crypto API, which works only on HTTPS pages, so without a certificate you cannot even log in from a browser. The wiki recommends a reverse proxy in front of Vaultwarden and advises against its built-in TLS. Put a proxy such as Caddy or nginx on ports 80 and 443, give it a Let's Encrypt certificate for your domain, and open those two ports in ufw.

Live sync between devices runs over WebSocket, on by default since version 1.29.0 and on the same port as everything else since 1.31.0. Older guides still map a port 3012; it is gone. Your proxy only has to pass the Upgrade and Connection headers.

Three settings to change on day one

Close sign-ups

By default, anyone who can reach your Vaultwarden can create an account on it. Create the accounts you need, then set SIGNUPS_ALLOWED to "false" and run docker compose up -d again. New people can still be invited from the admin page or by an organization owner.

Hash the admin token

The admin page at /admin is off until you set ADMIN_TOKEN. Do not put a plain password there: generate an Argon2id hash with docker run --rm -it vaultwarden/server /vaultwarden hash and use that. Inside docker-compose.yml every $ of the hash must be written as $$; in a .env file it stays as it is.

Remember that the admin page wins

When you press Save on the admin page, Vaultwarden writes config.json in the data folder, and from then on those values override your environment variables. If you change SIGNUPS_ALLOWED in the compose file after saving settings in the admin page and nothing happens, this is why: change it in the admin page or remove the key from config.json.

Backups that you can restore

Everything is in the data folder. The wiki marks db.sqlite3 and the attachments folder as the parts you must back up, config.json and the rsa_key files as recommended, and sends and icon_cache as optional. config.json holds the admin token and mail password in plain text, so keep your backups private.

Do not copy db.sqlite3 while the container runs, and do not rely on disk or server snapshots, which the wiki advises against. Since version 1.32.1 Vaultwarden has its own command for a consistent copy of the database: docker exec vaultwarden /vaultwarden backup. The image has no sqlite3 program and no cron, so run that command from the server's own crontab every night, then copy the backup and the attachments folder to another machine. The wiki asks for at least one copy away from the server.

To restore, stop the container, put db.sqlite3 and the folders back, delete any db.sqlite3-wal file that is left, and start it again. Try this once on a spare VPS before you need it.

What it costs against Bitwarden's own plans

Our smallest VPS costs $4.60 a month, $55.20 a year. Bitwarden's Families plan is $3.99 a month billed yearly, $47.88 a year for up to six people, which is less, and it includes their hosting and support. For one household, Vaultwarden is worth it when you want the data on your own server or already run other things on the same VPS.

For a team the sums change. Bitwarden Teams is $4 per user a month and Enterprise $6 per user a month, so ten people pay $40 or $60 a month, while one Vaultwarden server serves them for $4.60. In exchange you give up Bitwarden's support and do the updates and backups yourself. Keep the image current with docker compose pull: the Vaultwarden README warns that automatic updates of the Bitwarden apps can stop working with an old server, and release 1.37.5 fixed two security problems.

Questions

Is Vaultwarden the same as Bitwarden?

No. Vaultwarden is an independent server that works with the official Bitwarden apps and browser extensions. It is not made or supported by Bitwarden, Inc., so its problems go to the Vaultwarden project.

How much RAM does Vaultwarden need?

Vaultwarden does not publish a minimum. A VPS with 1 GB of memory is enough for Vaultwarden and a reverse proxy for a family or a small team; we suggest 2 GB if other containers share the server. The official Bitwarden server asks for 2 GB and recommends 4 GB.

How much does it cost to self-host Vaultwarden?

On our price list a VPS with 1 vCPU, 1 GB of memory and 20 GB of NVMe costs $4.60 a month, with no setup fee. Vaultwarden itself is free. Add a domain name if you do not have one.

How do I back up Vaultwarden?

Run docker exec vaultwarden /vaultwarden backup from the server's crontab for a consistent copy of the database, then copy it with the attachments folder and config.json to another machine. Do not copy db.sqlite3 while the container is running.

Sources, read on 27 November 2026: Vaultwarden on GitHub, Vaultwarden releases, Using Docker Compose, Backing up your vault, Enabling the admin page, Disabling sign-ups, WebSocket notifications, Bitwarden on Linux, Bitwarden lite, Bitwarden pricing, Docker and ufw.

Written and checked by the VPS Provider team.