docker-mediawiki
docker-mediawiki copied to clipboard
Using docker secrets for mysql password with mediawiki
Hi there,
To make use of this image in docker-compose without hard-coding passwords, and use docker secrets, there must be a way for mediawiki to get the mysql password from a file rather than an environment variable. It's a bit complicated, but boils down to the fact that docker secrets pass information into the container at runtime only, and via files only (the secret my_secret
is available in the contents of the file /run/secrets/my_secret
).
This requires a $MYSQL_PASSWORD_FILE
variable option, instead of just a $MYSQL_PASSWORD
option. Any plans to add this? Is this capability already in the container using some other method?
Sounds like it'll be worth adding support for. I'll make it a priority.
I'm looking for the same functionality. Has there been any progress on this?