---
title: How to Deploy Bitwarden – Password Management Vault
url: https://docs.vultr.com/how-to-deploy-bitwarden-password-management-vault
description: Deploy the official Bitwarden server on Ubuntu using Docker with automatic TLS security.
publish_date: 2025-12-11T21:45:11.580553Z
last_updated: 2026-09-11T16:41:42.667648Z
author: Jivendra Sah
header_image: https://docs.vultr.com/public/doc-assets/2427/cde5d81b-a9c6-4c90-8ddb-0c8c53e7fe7e.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

Bitwarden is a secure, open-source password management platform designed for individuals, teams, and organizations of all sizes. It provides encrypted vault storage, multi-device syncing, organization management, and strong administrative controls for managing credentials across environments. Running Bitwarden on your own server allows you to manage users, organizations, and secrets with full oversight.

This article demonstrates how to deploy the official Bitwarden server stack on Ubuntu 24.04. This deployment utilizes the official shell script wrapper to orchestrate the Docker containers and automatically handles TLS certificates via Let's Encrypt.

## Prerequisites

The official Bitwarden server infrastructure is robust and resource-intensive. Ensure your server meets the following requirements before proceeding:

* Have access to an [Ubuntu 24.04 server](https://www.vultr.com/servers/ubuntu/) as a [non-root user with sudo privileges](https://docs.vultr.com/how-to-create-a-sudo-user-in-linux). The system should have at least 2 GB of system memory. The recommended memory is 4 GB.
* [Install Docker and Docker Compose](https://docs.vultr.com/how-to-install-docker-on-ubuntu-24-04#install-docker).
* Configure a domain name, such as `bitwarden.example.com`, to point to your server’s public IP address.
* Obtain a free **Installation ID** and **Installation Key** from the [Request Hosting Installation Id & Key page](https://bitwarden.com/host).

## Prepare the Environment

The installation script performs Docker operations that require specific permissions. You must prepare the user environment and installation directory.

1. Add your current user to the `docker` group.

    ```console
    $ sudo usermod -aG docker $USER
    ```

1. Refresh your group membership.

    ```console
    $ newgrp docker
    ```

1. Create the directory where Bitwarden will be installed.

    ```console
    $ sudo mkdir -p /opt/bitwarden
    ```

1. Grant ownership of the directory to your current user.

    ```console
    $ sudo chown -R $USER:$USER /opt/bitwarden
    ```

1. Navigate to the directory.

    ```console
    $ cd /opt/bitwarden
    ```

## Download and Install Bitwarden

Bitwarden provides a shell script that automates the downloading, configuration, and updating of the necessary Docker containers.

1. Download the official installation script.

    ```console
    $ curl -Lso bitwarden.sh https://go.btwrdn.co/bw-sh
    ```

1. Make the script executable.

    ```console
    $ chmod 700 bitwarden.sh
    ```

1. Run the installer.

    ```console
    $ ./bitwarden.sh install
    ```

1. The script prompts you for configuration details. Enter the following values:

    * **Enter the domain name for your Bitwarden instance:** Enter your domain (e.g., `bitwarden.example.com`).
    * **Do you want to use Let's Encrypt to generate a free SSL certificate?** `y`
    * **Enter your email address:** Enter a valid email address for Let's Encrypt certificate renewal notifications.
    * **Enter the database name:** `vault`.
    * **Enter your installation id:** Paste the Installation ID you obtained from the prerequisites.
    * **Enter your installation key:** Paste the Installation Key.
    * **Enter your region:** `US` or `EU`.

    The script pulls multiple Docker images (including Nginx, Microsoft SQL Server, and various Bitwarden microservices). This process may take several minutes.

## Start the Server

Once the installation script completes, the environment is configured. However, the containers are not yet running.

1. Start the Bitwarden instance.

    ```console
    $ ./bitwarden.sh start
    ```

1. Verify the container status.

    ```console
    $ docker container ls
    ```

    You should see a list of containers, such as `bitwarden/nginx...`, `bitwarden/mssql...`, `bitwarden/web...`, with a status of `Up`.

## Create Your First User

The installation process configures the infrastructure but does not create a user account. The email address provided during installation was for TLS registration. You must register a new user to become the administrator.

1. Open your web browser and navigate to your domain `https://bitwarden.example.com`.

    ![Login Page](https://docs.vultr.com/public/doc-assets/2427/b7815bf7-25e8-4f52-9e5b-c0388b75d4ba.png)

1. Click the **Create account** link at the bottom of the login box.

1. Fill in your Email, Name, Master password, and the Master password hint.

    > [!WARNING]
    > Do not lose your Master Password. Bitwarden uses zero-knowledge encryption. If you lose this password, your data cannot be recovered by you or the server administrator.

1. Submit the form. You will be redirected to the Login screen.

1. Log in using your new credentials to access your vault.

    ![Bitwarden dashboard](https://docs.vultr.com/public/doc-assets/2427/c1b70d09-1261-4b4a-b8f2-4d5b975f0423.png)

## Conclusion

You have successfully deployed the Official Bitwarden Server on Ubuntu 24.04. Your instance is fully compatible with all Bitwarden client applications (Mobile, Desktop, Browser) and is secured with auto-renewing TLS certificates. For more information, refer to the [Bitwarden documentation](https://bitwarden.com/help/).
