Skip to main content

Command Palette

Search for a command to run...

Deploying Bitwarden Password Management Vault on Ubuntu 24.04

Step-by-step guide to install the official Bitwarden server on Ubuntu 24.04 with the bitwarden.sh installer, automatic Let's Encrypt TLS, and the first vault user.

Updated
2 min read
Deploying Bitwarden Password Management Vault on Ubuntu 24.04
S
A Developer Advocate with a focus on improving the developer experience through clear communication, technical enablement, and community engagement.
A
DevOps Engineer with experience in Kubernetes, automation, cloud infrastructure, and observability. I work in Developer Relations, contribute to technical documentation, and collaborate on engineering-focused projects.

Bitwarden is an open-source, end-to-end encrypted password manager. The official self-hosted server runs as a stack of Docker containers and ships with an interactive installer that wires up TLS and the database. This guide installs the official Bitwarden server on Ubuntu 24.04, configures automatic Let's Encrypt TLS through the installer, and creates the first vault user, following password management vault deployment practices documented in Vultr Docs.

Prerequisites: Ubuntu 24.04 with at least 2 GB RAM (4 GB recommended), Docker + Docker Compose installed, a domain pointed at the server, and an Installation ID + Key from bitwarden.com/host.


Prepare the Environment

1. Add your user to the Docker group:

sudo usermod -aG docker $USER
newgrp docker

2. Create and own the install directory:

sudo mkdir -p /opt/bitwarden
sudo chown -R \(USER:\)USER /opt/bitwarden
cd /opt/bitwarden

Download and Install Bitwarden

1. Fetch the installer script:

curl -Lso bitwarden.sh https://go.btwrdn.co/bw-sh
chmod 700 bitwarden.sh

2. Run the installer:

./bitwarden.sh install

Answer the interactive prompts:

  • Domain name: your fully qualified domain (e.g. bitwarden.example.com)

  • Use Let's Encrypt: y (recommended) — supply a contact email

  • Database name: vault (default is fine)

  • Installation ID and Key: from bitwarden.com/host

  • Region: US or EU to match where you obtained your install ID


Start the Server

1. Bring the stack online:

./bitwarden.sh start

2. Confirm the containers are running:

docker container ls

The first start downloads images and builds configuration. Initial start can take a few minutes.


Create Your First User

  1. Open https://bitwarden.example.com in a browser.

  2. Click Create Account and complete the signup form.

  3. Verify the email address (configure SMTP in /opt/bitwarden/bwdata/env/global.override.env if not already set).

  4. Sign in to create your first organization and vault items.

Bitwarden uses zero-knowledge encryption. If the master password is lost, the vault cannot be recovered. Save it in a secure offline location.

Next Steps

Bitwarden is running securely at your domain. From here you can:

  • Configure SMTP so users receive invitations and password reset emails

  • Set up scheduled backups of /opt/bitwarden/bwdata

  • Use ./bitwarden.sh update and ./bitwarden.sh restart to roll new releases

For the full guide with additional tips, visit the original article on Vultr Docs.

The Self-Hosted Stack

Part 13 of 50

The Self-Hosted Stack is a developer-focused series exploring open-source tools you can deploy, run, and manage on your own infrastructure. From AI platforms and databases to developer tools, observability stacks, and authentication systems, each guide walks through deploying production-ready open-source software on Vultr cloud infrastructure.

Up next

Deploying GitLab CE DevOps Management Suite on Ubuntu 24.04

Step-by-step guide to deploy GitLab CE with Docker Compose and Traefik on Ubuntu 24.04, with persistent storage and automatic HTTPS for a production-ready DevOps platform.

More from this blog

V

Vultr

71 posts

Vultr is a global cloud infrastructure provider trusted by developers and businesses in 185+ countries. We publishe hands-on guides spanning Linux administration, server configuration, DevOps, networking, open source stacks, AI code agents, and Vultr product walkthroughs, all tested against real cloud environments and built for engineers who ship.