[FIXED] Build ARM PostgreSQL Image

Hey Guys,

Is it possible to build an Docker Image based on ARM (RaspberryPI) for bitwardenrs/server-postgresql too? I already tried to modify the original Dockerfile and add the postgres dependencies, but the build will fail.

Any suggestions/help?

Greetings,

Dominic

Hello @domrocco,

I Actually just sent a PR for this. After some hard debugging and tracing i got it working for all current arm versions we build for sqlite already. The docker images will be multidb, so sqlite, postgresql and mysql will all be supported.

New builds with the testing tag are available right now.
A new tagged version release will be available shortly.

You can find these releases here: https://hub.docker.com/r/bitwardenrs/server

@BlackDex, is there a guide how to run the new multidb containers with postgresql built-in?
This question has come up since the additional images (like bitwardenrs/server-postgresql) will get deprecated one day as far as I have read.

Just replace the bitwardenrs/server-postgresql image with bitwardenrs/server. Everything else is the same.

Hey, thanks for your answer!

It seems like I have misunderstood something:
Doesn’t the following command work because the database isn’t build into the image?
docker run -d --name bitwarden -v /bw-data/:/data/ -p 80:80 bitwardenrs/server-postgresql:latest
Do I have to add the database externally?

Maybe do you have an example how to run the new docker image with postgresql backend? I couldn’t find any…

The multidb images with PostgreSQL support only include the necessary client libraries. See https://github.com/dani-garcia/bitwarden_rs/wiki/Using-the-PostgreSQL-Backend for how to use that.

There has never been a bitwarden_rs image with a PostgreSQL server built in. There would be no point to doing that; you should use the SQLite image if you want a mostly self-contained image.

okay, thanks for clarifying!