Created
November 17, 2018 19:17
-
-
Save coreycoburn/27c290f6cc50227d9c2162f9eca6ff41 to your computer and use it in GitHub Desktop.
Create Multiple databases in Docker Compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
entrypoint: | |
sh -c " | |
echo 'CREATE DATABASE IF NOT EXISTS dbname;' > /docker-entrypoint-initdb.d/init.sql; | |
/usr/local/bin/docker-entrypoint.sh --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment