mysql create multiple database.
This commit is contained in:
parent
07651842b6
commit
533c8fc7f7
|
@ -194,6 +194,7 @@ services:
|
||||||
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA_SAVE_PATH}/mysql:/var/lib/mysql
|
- ${DATA_SAVE_PATH}/mysql:/var/lib/mysql
|
||||||
|
- ./mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
||||||
ports:
|
ports:
|
||||||
- "${MYSQL_PORT}:3306"
|
- "${MYSQL_PORT}:3306"
|
||||||
networks:
|
networks:
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
*.sql
|
|
@ -0,0 +1,8 @@
|
||||||
|
###
|
||||||
|
### Copy createdb.sql.example to createdb.sql
|
||||||
|
### then uncomment and set database name to create you need databases
|
||||||
|
###
|
||||||
|
|
||||||
|
#CREATE DATABASE IF NOT EXISTS `dev_db_1` ;
|
||||||
|
#CREATE DATABASE IF NOT EXISTS `dev_db_2` ;
|
||||||
|
#CREATE DATABASE IF NOT EXISTS `dev_db_3` ;
|
Loading…
Reference in New Issue