Skip to content

Set Up Vaultwarden on a Linux Server – Lightweight Password Server for Bitwarden Apps

Set up Vaultwarden on your Linux server: as a One-Click App with HTTPS or manually using Docker Compose. Your own password server for the official Bitwarden apps.

26 November 20265 min read1 Views0 helpful

Introduction

Vaultwarden is a lightweight, self-hosted server for the Bitwarden password manager. It is an unofficial reimplementation of the Bitwarden server and works with the official Bitwarden apps: browser extension, desktop app, and smartphone app can all connect easily to your own server. Your passwords, passkeys, notes, and credit cards are stored encrypted on your server instead of with a third-party provider. Vaultwarden uses very little memory, so it can run even on small VPSs.

Info

Vaultwarden or Bitwarden? Vaultwarden is not affiliated with the Bitwarden project, but it uses the same apps. If you would rather self-host the official Bitwarden server, see our guide Set Up Bitwarden on a Linux Server. The official server requires at least 2 GB of RAM and runs in multiple containers.

In this guide, we'll show you two ways to get started: the easy way using the One-Click Apps on your VPS, and manual installation using Docker Compose.

Easy method: Vaultwarden as a One-Click App

The quickest way to get your own password server is through your VPS's One-Click Apps. ZapX sets up a domain and HTTPS for you—without HTTPS, Vaultwarden will not work—and adds the app's address to Vaultwarden. You won't need the console.

Requirements

  • A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set Up One-Click Apps to learn how.
  • At least 128 MB RAM for Vaultwarden; 256 MB is recommended.

Install

  1. Open your VPS in the ZapX dashboard and switch to the One-Click Apps tab.
  2. Search the App catalog for Vaultwarden and click Install app.
  3. Leave Use a custom subdomain or zap.cloud enabled and choose an address. Vaultwarden's web interface only works over HTTPS, so you can't sign in without a domain.
  4. You can leave everything under App configuration at its default settings. SIGNUP_ALLOWED is set to true so you can create your account right away. By default, VAULTWARDEN_DB_URL uses an SQLite database.
  5. Click Queue installation. The app will be online in one to two minutes.
Warning

Disable sign-ups afterward While SIGNUP_ALLOWED is set to true, anyone who knows the address can create an account on your server. So create your account immediately after installation, then disable sign-ups as described below.

Create an account

  1. Open the app's address and click “Create account.”
  2. Enter your email address and name, then click “Continue.” You won't receive a confirmation email; you'll go straight to the next step.
  3. Set your master password. It must be at least 12 characters long. It is used to encrypt your data.
  4. Click “Create account.” You can skip the browser extension prompt by clicking “Add it later.” You'll then see your empty vault.
Important

Don't forget your master password Your master password cannot be recovered, not even by us. If you forget it, the data in your vault will be lost.

Disable sign-ups

  1. Open the app settings (gear icon) and switch to App environment.
  2. Under App configuration, set SIGNUP_ALLOWED to false.
  3. Click Save. The app will restart and be available again after a few seconds.

After that, Vaultwarden will reject new sign-ups, while your own account will continue to work as usual. You can invite other people later through the admin page.

Connect the Bitwarden apps

Install the official Bitwarden apps for your browser, computer, or smartphone. When signing in, select the self-hosted option for the server and enter your app's address, for example, https://your-name-1234.zap.cloud. Then sign in with your email address and master password.

Admin page

You can access the Vaultwarden admin page at <app address>/admin. There, you can manage users and organizations, invite people, and set up email delivery under “SMTP Email Settings.” Vaultwarden won't send emails without SMTP. Use “Backup Database” to create a database backup.

The app generates the admin page password during installation. You can find it in the app settings (gear icon) under App environment > Automatically generated values as SERVICE_PASSWORD_64_ADMIN. Click the eye icon to view it or the copy icon to copy it.

Info

Notes on the admin page The admin page notes that the password is stored in plain text. This is expected for the One-Click App; the password is randomly generated and 64 characters long. Also note that any settings you save on the admin page take precedence over the values in the App Environment.

Updates

To check whether an update is available for your installation, go to App update in the app settings (gear icon) and click Check for updates. If a new version is available, install it by clicking Apply update. Your vault will be preserved because the data is stored in a separate volume.

Manual installation

The rest of this guide covers manual installation from the console using Docker Compose, for example, if you want to integrate Vaultwarden into an existing server environment. The instructions are based on the official Vaultwarden guide.

Requirements

  • A Linux server running Debian or Ubuntu that you can access via SSH.
  • Docker with the Compose plugin. See our guide Set Up Docker for instructions on installing Docker.
  • A domain that points to your server and a reverse proxy with HTTPS. Vaultwarden's web interface only works over HTTPS.

Start Vaultwarden

Create a directory, for example, vaultwarden, and create a compose.yaml file inside it:

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

Replace https://vw.domain.tld with the address where you want Vaultwarden to be accessible. Then start the container from the same directory:

Code
docker compose up -d

Vaultwarden now listens only locally on port 8000, and its data is stored in the vw-data subdirectory. Set up a reverse proxy to forward your domain over HTTPS to 127.0.0.1:8000. See Set Up a Reverse Proxy with nginx.

Create and secure your account

Open your domain and create your account as described above under Create an account. Then set SIGNUPS_ALLOWED: "false" in compose.yaml. Apply the change by running docker compose up -d.

The admin page is disabled by default with a manual installation. If you want to use it, set an admin token using the ADMIN_TOKEN variable. Vaultwarden recommends using an Argon2 hash instead of plain text; see Enabling admin page.

Update Vaultwarden

Switch to the directory and pull the new version:

Code
docker compose pull
docker compose up -d

Conclusion and further resources

Congratulations! Your own Vaultwarden password server is now running. Find more information here:

Do you have questions that aren't answered here? Our support team is happy to help every day! 🙂

Free tools

Related tools for servers and developers

View all

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.