Skip to content

Instantly share code, notes, and snippets.

@coreycoburn
Created November 17, 2018 19:17
Show Gist options
  • Save coreycoburn/27c290f6cc50227d9c2162f9eca6ff41 to your computer and use it in GitHub Desktop.
Save coreycoburn/27c290f6cc50227d9c2162f9eca6ff41 to your computer and use it in GitHub Desktop.
Create Multiple databases in Docker Compose
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