Bitwarden On-Premise
BITWARDEN - Deploy to Ubuntu Server
π Official Docs - Install and Deploy - Linux (always check for updated process)
Network and Domain
Point your DNS records domain to your Linux host machine, if you want to reach it from the public network.
Open these ports so Bitwarden can be accessed from inside the network (in this case).
80(http) ,11443(https)
On the Linux machine:
sudo ufw allow 80
sudo ufw allow 11443
sudo ufw statusInstall Docker and Docker Compose
π Docs - Install Docker Engine on Ubuntu
Install dependencies and setup repository
# uninstall older Docker versions:
sudo apt-get remove docker docker-engine docker.io containerd runc
sudo apt update
sudo apt install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common lsb-releaseInstall Docker Engine and Compose
Create Bitwarden Local User and directory
Install Bitwarden
Use the shell script for installation with the
bitwardenuser in the/opt/bitwardendirectory
Retrieve an installation id using a valid email at https://bitwarden.com/host.
π Hosting FAQs
Installation ids keys are used when installing Bitwarden on-premises in order to:
Register your installation and contain email so that we can contact you for important security updates.
Authenticate to push relay servers for push notifications to Bitwarden client applications.
Validate licensing of paid features.
Retrieve an installation id and key from https://bitwarden.com/host.
You should not share your installation id or installation key across multiple Bitwarden installations. They should be treated as secrets.
Automatic Update
Create a cronjob to run the updates automatically
Add the 3 lines to the script:
Make the script executable:
Change https port
Manual Bitwarden Update
Start and Stop Bitwarden
Offline Starting
Since
bitwarden.shrequires internet connection to work, Bitwarden can be started offline using the docker container already present on the host.
Last updated
Was this helpful?