Replies: 3 comments 3 replies
-
|
I have exactly the same problem, I don't want to use the text variant of the password, and I want to use the secret. |
Beta Was this translation helpful? Give feedback.
-
|
Any help on this guys, I am also facing this problem |
Beta Was this translation helpful? Give feedback.
-
|
Create a DATABASE_URL string which includes the password and full URL as described in the .env.template or the wiki. All ENV variables support appending |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
According to the description on how to set up Postgres with vaultwarden https://github.com/dani-garcia/vaultwarden/wiki/Using-the-PostgreSQL-Backend
it is mentioned:
The
PG*Variables are listed here: https://www.postgresql.org/docs/current/libpq-envars.htmlI am using docker secrets and try to pass the password either to the DATABASE_URL string or set them as PG Variables.
Both ways are not working and maybe someone can help out.
What I am doing wrong with the
PG* Variablesand or how to use the secret in theDATABASE_URL?In my example, I am using the following variables in my docker-compose environment part:
or easier
If I start this setup, the SQLite files are created in the data folder, so the Postgres db is not used.
If I try to set the DATABASE_URL the following way
DATABASE_URL: postgresql://$PGUSER:$PGPASSFILE@$PGHOST:5432/$PGDATABASEI get following message during
docker-compose upand clearly the message:
If I replace the password with the plain password, everything is starting up
DATABASE_URL: postgresql://$PGUSER:<PLAIN_PASSWORD>:5432/$PGDATABASEBut I don't want to post the plain password in my compose setup.
my .env
I am using
Docker version 24.0.6, build ed223bcand
Docker Compose version v2.20.3Beta Was this translation helpful? Give feedback.
All reactions