Docker-DocumentServer icon indicating copy to clipboard operation
Docker-DocumentServer copied to clipboard

How to provide database (postgres for me) password via Docker secrets?

Open jeffrson opened this issue 5 years ago • 4 comments

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.

jeffrson avatar Jan 15 '21 16:01 jeffrson

@agolybev Please take a look and decide if we should implement it

ShockwaveNN avatar Jan 18 '21 07:01 ShockwaveNN

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

pengu-fr avatar Apr 25 '22 12:04 pengu-fr

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/*).

cirune avatar Jun 17 '22 16:06 cirune

Hello @jeffrson, sorry for the late reply. I think it's a good idea, i created enhancement issue 57658 in our private issue tracker

igwyd avatar Jun 20 '22 10:06 igwyd