[GH-ISSUE #996] Document postgres setup #706

Closed
opened 2026-03-03 02:02:23 +03:00 by kerem · 7 comments
Owner

Originally created by @cromefire on GitHub (May 13, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/996

From the code and some issues it seems that postgres is supported, but in the wiki I couldn't find any info regarding it.
It would be good if there could be like 2 sentences be added about postgres somewhere, like:

Configure postgres like this:
VAR=pgsql://user:pw@host/DB

(Assuming it's as easy as that)

Originally created by @cromefire on GitHub (May 13, 2020). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/996 From the code and some issues it seems that postgres is supported, but in the wiki I couldn't find any info regarding it. It would be good if there could be like 2 sentences be added about postgres somewhere, like: ``` Configure postgres like this: VAR=pgsql://user:pw@host/DB ``` (Assuming it's as easy as that)
kerem closed this issue 2026-03-03 02:02:24 +03:00
Author
Owner

@djmattyg007 commented on GitHub (May 16, 2020):

My understanding is that support for the specific database you want to use has to be baked in at compile-time.

I think it would help a great deal to start getting this packaged by distros if support could just be controlled via configuration.

<!-- gh-comment-id:629573502 --> @djmattyg007 commented on GitHub (May 16, 2020): My understanding is that support for the specific database you want to use has to be baked in at compile-time. I think it would help a great deal to start getting this packaged by distros if support could just be controlled via configuration.
Author
Owner

@cromefire commented on GitHub (May 16, 2020):

So I found bitwardenrs/server-postgres, and from the diesel docs I gathered that prepending the full postgresql is correct, and that actually worked, so it just needs some documentation

<!-- gh-comment-id:629625037 --> @cromefire commented on GitHub (May 16, 2020): So I found `bitwardenrs/server-postgres`, and from the diesel docs I gathered that prepending the full `postgresql` is correct, and that actually worked, so it just needs some documentation
Author
Owner

@jpeeler commented on GitHub (Aug 13, 2020):

Doesn't look like "pgsql" will work: https://github.com/dani-garcia/bitwarden_rs/pull/1044. I used this with all of the fields specified:

DATABASE_URL='postgresql://[[user]:[password]@]host[:port][/database]'

<!-- gh-comment-id:673205644 --> @jpeeler commented on GitHub (Aug 13, 2020): Doesn't look like "pgsql" will work: https://github.com/dani-garcia/bitwarden_rs/pull/1044. I used this with all of the fields specified: `DATABASE_URL='postgresql://[[user]:[password]@]host[:port][/database]'`
Author
Owner

@cromefire commented on GitHub (Aug 13, 2020):

Yeah see my last comment, but it would be good if it was documented somewhere or if there was at least a link to the diesel docs

<!-- gh-comment-id:673326390 --> @cromefire commented on GitHub (Aug 13, 2020): Yeah see my last comment, but it would be good if it was documented somewhere or if there was at least a link to the diesel docs
Author
Owner

@jjlin commented on GitHub (Aug 13, 2020):

I leave it to an actual PostgreSQL user to write more comprehensive docs on the wiki, but #1095 should provide the basics.

<!-- gh-comment-id:673374940 --> @jjlin commented on GitHub (Aug 13, 2020): I leave it to an actual PostgreSQL user to write more comprehensive docs on the wiki, but #1095 should provide the basics.
Author
Owner

@cromefire commented on GitHub (Aug 13, 2020):

Yeah that's sufficient

<!-- gh-comment-id:673375815 --> @cromefire commented on GitHub (Aug 13, 2020): Yeah that's sufficient
Author
Owner

@BlackDex commented on GitHub (Oct 8, 2020):

Those changes together with this fresh wiki page, https://github.com/dani-garcia/bitwarden_rs/wiki/Using-the-PostgreSQL-Backend , should be enough. Closing this ticket.

<!-- gh-comment-id:705862989 --> @BlackDex commented on GitHub (Oct 8, 2020): Those changes together with this fresh wiki page, https://github.com/dani-garcia/bitwarden_rs/wiki/Using-the-PostgreSQL-Backend , should be enough. Closing this ticket.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#706
No description provided.