Question How to run Bitwarden via Docker on my NAS?

Status
Not open for further replies.
362
96
NAS
DS418play
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
  2. Windows
Mobile operating system
  1. iOS
Last edited:
Ok, I'll need some help here with running Bitwarden on Docker on NAS.

I managed to install Docker and Bitwarden from mprasil: Docker Hub

This is what I have so far:
4




Now, I'm not sure what to do next... How to run Bitwarden and connect to it on my NAS?

I've found this guide (dani-garcia/bitwarden_rs), but still not sure what are the next steps... Sorry, newbie.

Thank you for any help.
 
OK, so far so good.

From what I can see, Bitwarden container is using local ports 32768 and 32769 on your diskstation. Since 32769 translates to container port 80 (this is standard HTTP port according to RFC1700), my guess is that your Bitwarden installation should be accesible by pointing your favorite web browser to the local IP address of your Diskstation followed by local port number, something like:

http://192.168.X.X:32769

where X.X is the same as your diskstation.

It should open your web vault, where you can create accounts and manage everything.
 
Perfect!

http://192.168.X.X:32769 works like a charm. Well, it's not SSL and my NAS IP change sometimes (not sure why).

But is there any way I can connect via https://[myservername].synology.me?
 
NAS IP change sometimes (not sure why)
Reason is that you are not using your static IP address. Go to Control Panel > Network > Interface and change the LAN configuration from dynamic to static

But is there any way I can connect via https://[myservername].synology.me?
Yes there is. You will need to configure a revers proxy for that container using Control Panel > Application portal > Revers proxy. There you can make your FQDN name of choice as a Source along with port name and destination your NAS IP address and port that BW lives on (32769). After that go to Security (in Control Panel) and bind your SSL certificate to your new revers proxy parameter that will be visible there. Done
 
There is a Help & Support section on Bitwarden.com about on-premise installation.

By default, Bitwarden will be served through ports 80 (http) and 443 (https) on the localhost machine. You should open these ports so that Bitwarden can be accessed from within and/or outside of the network. You can choose different ports during installation if you like.

If you want to use just the DNS name, you should set up reverse proxy that responds to all inquiries from the Internet.

Otherwise, you should use your DNS name followed by port number (32769) which should bi opened on your router and forwarded directly to diskstation.
 
Actually, I don't have a static IP. As far as I know I need to contact my ISP for a static IP, am I right?
LAN address has no connestion to your isp. Regarding your public ip, there is no problem considering that you are using ddns service
 
Actually, I don't have a static IP. As far as I know I need to contact my ISP for a static IP, am I right?

Sure, you can get static public IP address from your ISP if you want (costs money though), but for this it is not necessary, since it will not solve the issue of changing the local IP of your Diskstation.

There are two ways to solve the problem:

1. You set your router DHCP pool to reserve always the same IP address for your diskstation by using MAC address of the diskstation itself.

2. You change the DHCP range of your DHCP server (ISP router in your case) to exclude the address which you want to use for the diskstation, and set the IP of the diskstation manually (be sure to set both default gateway and DNS server accordingly, both to the IP of your ISP router).

Personally, I would completely disable DHCP server on the ISP router and run the DHCP service on the diskstation.
 
Perfect!

http://192.168.X.X:32769 works like a charm. Well, it's not SSL and my NAS IP change sometimes (not sure why).

But is there any way I can connect via https://[myservername].synology.me?
Reason is that you are not using your static IP address. Go to Control Panel > Network > Interface and change the LAN configuration from dynamic to static

Yes there is. You will need to configure a revers proxy for that container using Control Panel > Application portal > Revers proxy. There you can make your FQDN name of choice as a Source along with port name and destination your NAS IP address and port that BW lives on (32769). After that go to Security (in Control Panel) and bind your SSL certificate to your new revers proxy parameter that will be visible there. Done
Why not just leave Source as a wild card (*). In my case I use multiple DDNS in the event one is down. Is this wrong?
 
Hi,

A quick aside question pls. Can I store photos in Bitwarden?
Simple pictures like passport and credit card, things like that, not my whole library of course.

For password management, I’ve been a long time user of Codebook (used to be called STRIP), and I like it very much, but this is the only thing I’m missing.

The other thing I’m wondering about, is why do I need to run anything server side with Bitwarden?! With Codebook all I need is the apps and I can sync using Dropbox, google drive or to the main app on my Mac. I wish for a WebDAV support so I can sync to my DS but that’s not happening.
 
Can I store photos in Bitwarden?
No you can't but you can upload attachments if you have a premium membership. There are URLs, and custom text fields as well as Notes section but the rest can be uploded as an attachemnt.

6


why do I need to run anything server side with Bitwarden
Well BW is a server client platform. So server side everything is stored it offers multi user setup, and client side can be anything you want (well almost anything depending on your OS of choice and app support). So BW uses a DB format to store info not a simple flat file, so syncing is done the way that server side does all that, and clients just connect to it.

Personally I prefer it this way.
 
Sorry for late reply... I've been busy with other stuff.

Thanks to @Daddo who helped me out setting a fixed IP for my NAS :)

I hope I'll find some time later today to set up the Bitwarden. I'd really like to have it on my NAS.
 
Status
Not open for further replies.

Similar threads

If the Container Manager package is installed and started, the unix domain socket /var/run/docker.sock...
Replies
1
Views
842
I have no idea what you are doing, but I just tested it based on the instructions of the guide you linked...
Replies
11
Views
4,078
I also run VW and have 0 issues. This tag does not look familiar to me nor do they have version numbers...
Replies
6
Views
530
Thank you for this - I'll give it a go and see where I get - worst case I learn something as I go!
Replies
6
Views
2,214

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Back
Top