Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,5 @@ | |
*.out | ||
|
||
.idea/ | ||
|
||
deployments/docker-compose/.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,33 @@ | ||
# Docker Compose Usage | ||
|
||
## 配置 | ||
|
||
从模板创建配置文件 .env | ||
|
||
```shell script | ||
cp .env.example .env | ||
``` | ||
根据自己实际情况配置 | ||
|
||
```shell script | ||
### Registry Config ### | ||
# Set registry provider | ||
#MICRO_REGISTRY=etcd | ||
# Set registry address | ||
#MICRO_REGISTRY_ADDRESS=MICRO_REGISTRY_ADDRESS:2379 | ||
|
||
#DATABASE_URL | ||
DATABASE_URL=root:root@(DATABASE_ADDRESS:3306)/xconf?charset=utf8&parseTime=true&loc=Local | ||
``` | ||
|
||
> 如需使用 consul ,请在各个服务中引入 github.com/micro/go-plugins/registry/consul | ||
## 使用 | ||
|
||
启动全部服务 | ||
|
||
```shell script | ||
docker-compose up | ||
``` | ||
|
||
WEB UI: http://127.0.0.1:8080/admin/ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters