Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
Details
Activity
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
openSource
apollo
Commits
ffd0ff03
Commit
ffd0ff03
authored
Jul 14, 2017
by
冯靖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改Docker环境数据库脚本为自动初始化,免去手动初始化数据库表结构
parent
0ff0a11f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
docker-compose.yml
docker-compose.yml
+3
-2
docker.md
docker.md
+2
-2
No files found.
docker-compose.yml
View file @
ffd0ff03
...
@@ -61,4 +61,5 @@ services:
...
@@ -61,4 +61,5 @@ services:
ports
:
ports
:
-
"
3306:3306"
-
"
3306:3306"
volumes
:
volumes
:
-
/var/data/mysql:/var/lib/mysql
-
/var/data/mysql:/var/lib/mysql
\ No newline at end of file
-
./scripts/sql-docker:/docker-entrypoint-initdb.d
\ No newline at end of file
docker.md
View file @
ffd0ff03
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
### 如何使用
### 如何使用
克隆项目,在项目根目录下执行
`./run.sh`
,该过程涉及编译、打包、构建镜像会比较漫长
。
克隆项目,在项目根目录下执行
`./run.sh`
,该过程涉及编译、打包、构建镜像会比较漫长
待数据库启动完毕,连接数据库(数据库已经映射到宿主机的
`3306`
端口),用户名密码为
`root/root`
,执行
`scripts/sql-docker`
目录下的数据库脚本完成数据库初始化。
数据库已经映射到宿主机的
`3306`
端口,用户名密码为
`root/root`
Apollo配置中心 http://localhost:9090
Apollo配置中心 http://localhost:9090
...
...
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