Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow use of secrets when using docker-compose to set password #82

Open
xivk opened this issue Aug 8, 2023 · 0 comments
Open

Allow use of secrets when using docker-compose to set password #82

xivk opened this issue Aug 8, 2023 · 0 comments

Comments

@xivk
Copy link

xivk commented Aug 8, 2023

In the postgres docker containers there is the option to use the following to set something sensitive like passwords:

POSTGRES_PASSWORD_FILE: /run/secrets/db-password-file

This reads the password from a text-file, a 'secret'. See also https://www.docker.com/blog/how-to-use-the-postgres-docker-official-image/

The password never leaves the server this way and doesn't end up in a git repo somewhere as opposed to using this:

DB_PASSWORD: dbpassword

Is there a way to this using this container? Are you open here to a pull request adding this feature? Or am I missing some other way to configure the password?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant