Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laradock
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kerwin
laradock
Commits
533c8fc7
Commit
533c8fc7
authored
May 08, 2017
by
Shao Yu Lung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql create multiple database.
parent
07651842
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
docker-compose.yml
docker-compose.yml
+1
-0
.gitignore
mysql/docker-entrypoint-initdb.d/.gitignore
+1
-0
createdb.sql.example
mysql/docker-entrypoint-initdb.d/createdb.sql.example
+8
-0
No files found.
docker-compose.yml
View file @
533c8fc7
...
...
@@ -194,6 +194,7 @@ services:
-
MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes
:
-
${DATA_SAVE_PATH}/mysql:/var/lib/mysql
-
./mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
ports
:
-
"
${MYSQL_PORT}:3306"
networks
:
...
...
mysql/docker-entrypoint-initdb.d/.gitignore
0 → 100644
View file @
533c8fc7
*.sql
mysql/docker-entrypoint-initdb.d/createdb.sql.example
0 → 100644
View file @
533c8fc7
###
### 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` ;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment