benhutchins / docker-mediawiki

Docker container for MediaWiki
https://hub.docker.com/r/benhutchins/mediawiki/
Other
29 stars 153 forks source link

Using docker secrets for mysql password with mediawiki #20

Open charlesreid1 opened 6 years ago

charlesreid1 commented 6 years ago

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?

benhutchins commented 6 years ago

Sounds like it'll be worth adding support for. I'll make it a priority.

zmitchell commented 5 years ago

I'm looking for the same functionality. Has there been any progress on this?