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

using secrets #23

Closed
judos opened this issue Feb 11, 2019 · 1 comment
Closed

using secrets #23

judos opened this issue Feb 11, 2019 · 1 comment

Comments

@judos
Copy link

judos commented Feb 11, 2019

Hi there,
I like your docker image because it's very easy to use and phpmyadmin supports the .sql.gz by default.

Does the image support secret to set the db password?

@fradelg
Copy link
Owner

fradelg commented Feb 18, 2019

Hi,

thanks for using this image!

Regarding secrets I am not totally sure what you mean. You can always pass the credentials using environment variables in your session:

export MYSQL_PASS=<secret>
docker run -e MYSQL_PASS fradelg/docker-mysql-cron-backup

If you want to use docker secrets, you can overwrite the entrypoint of the image with your own shell script to read those secrets in an environment variable. Take a look at this answer in StackOverflow:

https://stackoverflow.com/questions/48094850/docker-stack-setting-environment-variable-from-secrets

I hope it helps you

@fradelg fradelg closed this as completed Jan 8, 2022
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

2 participants