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

Support CLICKHOUSE_PASSWORD_FILE environment variable in Dockerfile #58575

Closed
Eyal-Shalev opened this issue Jan 7, 2024 · 0 comments
Closed
Labels

Comments

@Eyal-Shalev
Copy link
Contributor

Use case

I want to pass the db password as a file. Instead of with environment variable.
This is needed if I want to use the docker secrets capabilities of docker-compose without tinkering.

Describe the solution you'd like

In the entrypoint.sh file of the Dockerfile, check if the CLICKHOUSE_PASSWORD_FILE environment variable is set and if it does and points to a file, use it to set the password on the user created in said script (defaults to default)

Additional context

From what I've seen many other database images provide such file. PostgreSQL for example: https://hub.docker.com/_/postgres#:~:text=it%20into%20account.-,Docker%20Secrets,-As%20an%20alternative

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

No branches or pull requests

2 participants