We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0765184 commit 533c8fcCopy full SHA for 533c8fc
3 files changed
docker-compose.yml
@@ -194,6 +194,7 @@ services:
194
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
195
volumes:
196
- ${DATA_SAVE_PATH}/mysql:/var/lib/mysql
197
+ - ./mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
198
ports:
199
- "${MYSQL_PORT}:3306"
200
networks:
mysql/docker-entrypoint-initdb.d/.gitignore
@@ -0,0 +1 @@
1
+*.sql
mysql/docker-entrypoint-initdb.d/createdb.sql.example
@@ -0,0 +1,8 @@
+###
2
+### Copy createdb.sql.example to createdb.sql
3
+### then uncomment and set database name to create you need databases
4
5
+
6
+#CREATE DATABASE IF NOT EXISTS `dev_db_1` ;
7
+#CREATE DATABASE IF NOT EXISTS `dev_db_2` ;
8
+#CREATE DATABASE IF NOT EXISTS `dev_db_3` ;
0 commit comments