docker-mediawiki icon indicating copy to clipboard operation
docker-mediawiki copied to clipboard

Using docker secrets for mysql password with mediawiki

Open charlesreid1 opened this issue 6 years ago • 2 comments

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?

charlesreid1 avatar Mar 25 '18 08:03 charlesreid1

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

benhutchins avatar Mar 25 '18 12:03 benhutchins

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

zmitchell avatar Apr 05 '19 23:04 zmitchell