Docker Compose - How reference many schemas in one mysql container Docker Compose - How reference many schemas in one mysql container docker docker

Docker Compose - How reference many schemas in one mysql container


The MYSQL_DATABASE variable allows a single database to be created, and permissions granted on the database to the MYSQL_USER if specified.

You can use a single database to house multiple schema's.

If you need to create multiple databases you may need to run some custom SQL as flyway can't do database creation for you. The flyway test resources include a mysql example.