Content
Default Docker Postgres Password
Added by Jacob A almost 4 years ago
I'm using OpenProject via its Docker container (using the openproject/community:8
image). I'm trying to figure out what the password for the Postgres database is (e.g., for connecting using psql
).
Is there a default username and password for the Postgres database?
Replies (2)
Hi Jacob,
the postgres password is determined by
$PGPASSWORD
and defaults back topostgres
https://github.com/opf/openproject/blob/dev/docker/supervisord#L18
Best,
Oliver
Thank you very much for your response!
For anyone else reading this in the future, I haven't yet been able to get password-based authentication as described above working (with
psql -U postgres -W
using theroot
account of my Docker container). However, following this guide, I was able to connect by runningsu postgres; psql
.