How to provide database (postgres for me) password via Docker secrets?
Do you want to request a feature or report a bug?
Feature(?)
What is the current behavior?
No way according to Docker-DocumentServer docs.
What is the expected behavior?
Have a POSTGRESQL_SERVER_PASS_FILE variable that will be read upon initialization and the content of which should be used as db superuser password. There might be use for POSTGRESQL_SERVER_DB_NAME_FILE and POSTGRESQL_SERVER_USER_FILE as well.
@agolybev Please take a look and decide if we should implement it
We would need to use secrets files to load secret for DB password and JWT secret, so indeed, adding 2 more configuration variables : DB_PWD_FILE and JWT_SECRET_FILE
I second this! It would be very helpful to be able to set the environment variables DB_NAME, DB_USER and DB_PWD via docker secrets. (DB_*_FILE:/run/secrets/*).
Hello @jeffrson, sorry for the late reply. I think it's a good idea, i created enhancement issue 57658 in our private issue tracker