# \[FIXED\] Build ARM PostgreSQL Image

**URL:** <https://vaultwarden.discourse.group/t/fixed-build-arm-postgresql-image/130>\
**Category:** Feature Requests\
**Created:** [June 2, 2020, 3:40am UTC](https://vaultwarden.discourse.group/t/fixed-build-arm-postgresql-image/130 "2020-06-02T03:40:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![domrocco](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@domrocco](https://vaultwarden.discourse.group/u/domrocco)\
**Post date:** [June 2, 2020, 3:40am UTC](https://vaultwarden.discourse.group/t/fixed-build-arm-postgresql-image/130/1 "2020-06-02T03:40:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![BlackDex](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/blackdex/32/8_2.png) [@BlackDex](https://vaultwarden.discourse.group/u/BlackDex)\
**Post date:** [October 5, 2020, 5:29pm UTC](https://vaultwarden.discourse.group/t/fixed-build-arm-postgresql-image/130/2 "2020-10-05T17:29:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![BlackDex](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/blackdex/32/8_2.png) [@BlackDex](https://vaultwarden.discourse.group/u/BlackDex)\
**Post date:** [October 8, 2020, 3:58pm UTC](https://vaultwarden.discourse.group/t/fixed-build-arm-postgresql-image/130/3 "2020-10-08T15:58:37Z")

</div>

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](https://hub.docker.com/r/bitwardenrs/server)

---

<div class="post-metadata">

**Author:** ![szaimen](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@szaimen](https://vaultwarden.discourse.group/u/szaimen)\
**Post date:** [December 13, 2020, 11:50pm UTC](https://vaultwarden.discourse.group/t/fixed-build-arm-postgresql-image/130/4 "2020-12-13T23:50:22Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![jjlin](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@jjlin](https://vaultwarden.discourse.group/u/jjlin)\
**Post date:** [December 14, 2020, 12:04am UTC](https://vaultwarden.discourse.group/t/fixed-build-arm-postgresql-image/130/5 "2020-12-14T00:04:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![szaimen](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@szaimen](https://vaultwarden.discourse.group/u/szaimen)\
**Post date:** [December 14, 2020, 9:38pm UTC](https://vaultwarden.discourse.group/t/fixed-build-arm-postgresql-image/130/6 "2020-12-14T21:38:17Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![jjlin](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@jjlin](https://vaultwarden.discourse.group/u/jjlin)\
**Post date:** [December 14, 2020, 10:05pm UTC](https://vaultwarden.discourse.group/t/fixed-build-arm-postgresql-image/130/7 "2020-12-14T22:05:53Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![szaimen](https://avatars.discourse-cdn.com/v4/letter/s/d6d6ee/32.png) [@szaimen](https://vaultwarden.discourse.group/u/szaimen)\
**Post date:** [December 14, 2020, 10:22pm UTC](https://vaultwarden.discourse.group/t/fixed-build-arm-postgresql-image/130/8 "2020-12-14T22:22:57Z")

</div>

okay, thanks for clarifying!
