Installing Bitwarden

Installing Bitwarden

Set Up a Password Manager with Bitwarden

Learn how to install bitwarden on your home network and migrate passwords from Lastpass

full course
  1. Installing Bitwarden
  2. Synology Configuration for Bitwarden
  3. Setup Your Bitwarden Clients

Bitwarden is an opensource password manager that allows you to centralize your password management and use your password database to automatically populate login forms on web pages or mobile applications.

Installing the Application via Docker

I’m going to be generally following directions here and here.

First thing you need to do is SSH into your NAS. Change over to your docker location

cd /volume1/docker

Install bitwarden with these commands

sudo curl -Lso bitwarden.sh https://go.btwrdn.co/bw-sh && chmod +x bitwarden.sh
sudo ./bitwarden.sh install

Configuration

You’ll need a host id and key from bitwarden. You can obtain them here.

During the install you will have to specify some configuration

Enter the domain name for your Bitwarden instance:
${your domain} (I used bitwarden.bullyrooks.com)

Do you want to use Let’s Encrypt to generate a free SSL certificate? (y/n):

no (we're going to use the synology certificate manager)

Enter your installation id:

Enter your installation key:
Copy and paste the values you got from the link above

Do you have a SSL certificate to use? (y/n):

no

Do you want to generate a self-signed SSL certificate? (y/n):
no

We just need to change the ports that bitwarden is going to use. Inside docker you should now have a /bwdata directory. Edit the config.yml file inside that directory with nano or vi

Change the http and https port values

# Docker compose file port mapping for HTTP. Leave empty to remove the port mapping.
# Learn more: https://docs.docker.com/compose/compose-file/#ports
http_port: 9190
#
# Docker compose file port mapping for HTTPS. Leave empty to remove the port mapping.
# Learn more: https://docs.docker.com/compose/compose-file/#ports
https_port:

save and update bitwarden quickly before we start up

sudo ./bitwarden rebuild

According to hometechblogger you may need to create some directories as well

mkdir bwdata/core
mkdir bwdata/core/attachments
mkdir bwdata/ca-certificates
mkdir bwdata/logs
mkdir bwdata/logs/admin
mkdir bwdata/logs/api
mkdir bwdata/logs/events
mkdir bwdata/logs/identity
mkdir bwdata/logs/mssql
mkdir bwdata/logs/nginx
mkdir bwdata/logs/icons
mkdir bwdata/logs/notifications
mkdir bwdata/mssql
mkdir bwdata/mssql/data
mkdir bwdata/mssql/backups

Starting Bitwarden

Start up bitwarden to complete the install

./bitwarden.sh start

you will also want to update the database (which you can do after Bitwarden starts)

./bitwarden.sh updatedb

1 comment on “Installing BitwardenAdd yours →

  1. Thank you for your Synology posts!
    I followed these instructions to get Bitwarden on my NAS. The newest script that curls down includes all those mkdirs during the docker rebuild step, so they aren’t necessary as a separate task anymore.
    Also, it should be noted that this installs a full Bitwarden self-hosted solution, so it includes a number of containers for separate workloads. An alternative solution for self-hosting is to install vaultwarden, which is a slimmer self-hosted Bitwarden-compatible option. It supports most features of the full-solution and doesn’t require so many containers to run. https://github.com/dani-garcia/vaultwarden/wiki

Leave a Reply

Your email address will not be published. Required fields are marked *