Skip to content
Go back

Quick & Easy Bitwarden Setup on Your Own Infrastructure

Published:  at  01:56 AM

Why Self-Host Bitwarden?

Bitwarden is a powerful, open-source password manager trusted by millions. While you can use their official cloud service, hosting Bitwarden yourself gives you full control over your data and privacy. Plus, setting it up is really quick and easy!

Here’s a simple guide to get Bitwarden running on your own server using Docker Compose.

Docker Compose File

Create a file named docker-compose.yml with the following content:

services:
  vaultwarden:
    image: vaultwarden/server:latest
    container_name: vaultwarden
    restart: always
    environment:
      WEBSOCKET_ENABLED: 'true'
      SIGNUPS_ALLOWED: 'true'
    volumes:
      - ./vw-data:/data
    ports:
      - "8080:80"

This configuration uses the lightweight unofficial Bitwarden server (bitwarden_rs / vaultwarden), which is simple to deploy and widely used.

Steps to Deploy

  1. Create a directory to hold your Bitwarden data:
mkdir ~/bitwarden && cd ~/bitwarden
  1. Save the docker-compose.yml file in that directory.

  2. Start the container:

docker compose up -d
  1. Bitwarden will now be accessible at: http://your-server-ip:8080

Creating an Account

Important: Once you have created your initial accounts, it’s a good security practice to disable new signups by setting SIGNUPS_ALLOWED=false in your docker-compose.yml file and restarting the container. This prevents unauthorized users from registering on your instance.

Browser Extensions and Apps

To access your vault conveniently, download Bitwarden extensions and apps from:

Logging Into Your Self-Hosted Vault

When logging in to the Bitwarden extension or app:

  1. Choose “Log in with a self-hosted server” (or similar wording).
  2. Enter your server URL, for example: http://your-server-ip:8080.
  3. Use the email and master password you registered with.

Optional: Admin Panel

If you set an ADMIN_TOKEN in the environment, you can access the admin panel at:

http://your-server-ip:8080/admin

Login with the token to manage users, view statistics, and configure settings.


With just a few commands and a small Docker Compose file, you have your own secure Bitwarden instance up and running. Enjoy full control over your password management without relying on third-party cloud services!

If you found this guide helpful, feel free to share it with your friends or colleagues.

Thank you for reading!


Share this post on:

Next Post
Known-plaintext Attack With Key+Nonce Reuse on ChaCha20