This guide provides a step-by-step plan to set up Bitwarden on your own server as cheaply as possible while keeping privacy and security as top priorities.
sudo apt update && sudo apt upgrade -y
sudo adduser bitwarden
sudo passwd bitwarden
sudo apt install docker.io docker-compose curl -y
sudo systemctl enable docker --now
bitwarden to the docker group:
sudo groupadd docker
sudo usermod -aG docker bitwarden
sudo mkdir /opt/bitwarden
sudo chown -R bitwarden:bitwarden /opt/bitwarden
sudo chmod 700 /opt/bitwarden
bitwarden.example.com) to your server's IP address.bitwarden user:
sudo su - bitwarden
cd /opt/bitwarden
curl -s -o bitwarden.sh https://raw.githubusercontent.com/bitwarden/server/master/scripts/bitwarden.sh
chmod +x bitwarden.sh
./bitwarden.sh install
When prompted:
/opt/bitwarden/bwdata/env/global.override.env.sudo apt update && sudo apt upgrade -y
./bitwarden.sh update
/opt/bitwarden/bwdata directory off the server.This plan combines minimal hardware cost, free open-source software, free SSL certificates, strong security practices, and privacy-conscious choices to help you maintain a cheap but secure Bitwarden self-hosted instance.
If you want help with any specific commands, configuration files, or scripts, feel free to ask!