mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-24 19:07:44 +03:00
Question: Docker-compose and bitwarden_rs only on RasPi #196
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MeiRos on GitHub (Jan 20, 2019).
I'm not sure if this is a good place to talk about this or not. But please. show me other place, if I should change place.
I was about to use bitwarden_rs on VPS but then I decided to move it to my my home network and on Raspberry pi. I had some test settings on VPS which I moved to Rpi. So, I'm going to run this with docker-compose, because settings were quite ready. Is it bad or good idea? There's no need for proxy so there's only Bitwarden image.
I have issued Let's Encrypt certificate with acme.sh. I used DNS alias mode. Maybe this is not needed but now it's secure connection at home. I have to use https://home.example.com to connect securelly.
My docker-compose.yml is:
What do you think? Can this work properly?
If this is ok, I can add this to wiki.
Because I'm noob with docker, how do I update bitwarden image? Just docker-compose down and then up -d ?
@mprasil commented on GitHub (Jan 20, 2019):
Not sure if I understood your question correctly, but technically speaking the only difference should be the different (raspberry) image being used. You might need to use different DNS setup, but this has nothing to do with running on raspberry and is just specific to your network.
@MeiRos commented on GitHub (Jan 20, 2019):
Well, there are many questions. ;)
Sorry for unclear questions.
Is it ok to run single image with docker-compose? Like now there's no proxy image included.
Do I need to add something to my docker-compose.yml file or should it work now properly and securely so it can be added to wiki as an single image example for docker-compose?
Do I get updated image if I do 'docker-compose down' and 'docker-compose up -d'?
Hopefully I have more clear questions now.
Let's Encrypt part is more like telling about environment where the Bitwarden is running. So no questions about it.
Thank You! You are doing great job dani-garcia, mprasil and others.
@mprasil commented on GitHub (Jan 20, 2019):
Ah I see what you mean now. Yes, you can use docker compose for single container. If you add it to wiki, I'd suggest providing example with x86 image though. Having raspberry image there for no real reason could be confusing.
Running without proxy is fine, but if you want to get websockets synchronisation working, you'll need proxy.
As for updating the image, you need to run
docker-compose pullbefore running theupcommand.Hope that helps.
@mprasil commented on GitHub (Jan 28, 2019):
Going to close this one as I believe the question was answered.