

Sudo chown -R bitwarden:bitwarden /opt/bitwardenĪdd the bitwarden user to the docker group with: sudo usermod -aG docker bitwardenĬhange to the bitwarden user with: su bitwarden How to download the installer script and deploy Bitwardenĭownload the handy installer script with: curl -Lso bitwarden.sh & chmod 700 bitwarden.shīefore we run the installer script, make sure you don’t have a web server already running (because Bitwarden is going to run on port 80 and it won’t start if that port is already taken). Give the newly created directory the proper permission and ownership with: sudo chmod -R 700 /opt/bitwarden First, we’ll create a directory for the user with: sudo mkdir /opt/bitwardenĬreate the user with: sudo adduser bitwarden To be safe, we’re going to run all of this with a specific user. Sudo apt install docker-ce docker-ce-cli containerd.io docker-compose How to create the Bitwarden user Update apt and install with the following: sudo apt update Note: The above method of adding a key is deprecated but still works.Īdd the correct repository: sudo add-apt-repository "deb $(lsb_release -cs) stable" Next, add the Docker GPG key with: curl -fsSL | sudo apt-key add.

We’ll be using Docker Compose, so there’s more to the installation than usual.įirst, install the necessary dependencies with: sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y On the off chance you don’t have Docker installed, let’s do so now. I’m going to be demonstrating on Ubuntu Server 20.04. The only things you’ll need to make this happen are a server that supports Docker and a user with sudo privileges. SEE: Password breach: Why pop culture and passwords don’t mix (free PDF) (TechRepublic) What you’ll need I’m going to show you how to do just that. That might sound like a serious challenge but, thanks to Docker, it’s actually quite simple. But if you’re seriously concerned about security and would rather not save your password database on a third-party server, you might want to consider deploying your own Bitwarden server. Bitwarden is one of my favorite password managers.
