Supported tags and respective
This MySQL docker image adds the following functionality
Support creating more than one database using
You can add comma separated database names to the
MYSQL_DATABASE env var.
MYSQL_DATABASE=prod,reporting,demo would create three databases.
MYSQL_USER will get all privledges on all the databases created this way.
Import DB on firstrun
If you create a docker image that is based on this one and include a file
import.sql that file will automatically be imported when the database starts up the first time.
Do that and have an
import.sql in the same dir and that is literally it.
Added ENV VAR
MYSQL_IMPORT - This contains the path to the script to import on startup, doesn't make sense to change this unless you are not using my image.