Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
I
infrastructure-dev
Project
Project
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
common
infrastructure-dev
Commits
f5899a58
Commit
f5899a58
authored
Apr 13, 2018
by
lizhuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use .env & build rabbit image
parent
e18dc6bf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
13 deletions
+5
-13
.env
.env
+1
-4
README.md
README.md
+2
-7
docker-compose.yml
docker-compose.yml
+2
-2
No files found.
.env
View file @
f5899a58
MONGO_PORT=27017
configRepo=/Users/lz/proj/config-repo
REDIS_PORT=6379
RABBITMQ_PORT=5672
RABBITMQMG_PORT=15672
\ No newline at end of file
README.md
View file @
f5899a58
...
@@ -13,12 +13,7 @@
...
@@ -13,12 +13,7 @@
## 使用前提
## 使用前提
1.
安装
[
Docker 17+
](
https://www.docker.com
)
1.
安装
[
Docker 17+
](
https://www.docker.com
)
2.
安装
[
Docker Compose
](
https://docs.docker.com/compose/install/#prerequisites
)
2.
安装
[
Docker Compose
](
https://docs.docker.com/compose/install/#prerequisites
)
3.
构建rabbitmq image
3.
在
`.env`
里配置config-server的文件仓库
```
cd rabbitmq
./build.sh
```
4.
在
`docker-compose.yml`
里配置config-server的配置文件仓库
## 使用方式
## 使用方式
### 启动 `docker-compose up -d`
### 启动 `docker-compose up -d`
...
...
docker-compose.yml
View file @
f5899a58
...
@@ -19,7 +19,7 @@ services:
...
@@ -19,7 +19,7 @@ services:
-
"
8889:8889"
-
"
8889:8889"
volumes
:
volumes
:
# 替换成本地config-repo仓库地址
# 替换成本地config-repo仓库地址
-
/Users/lz/proj/config-repo
:/Users/kane/git/pilipa/config-repo
-
${configRepo}
:/Users/kane/git/pilipa/config-repo
environment
:
environment
:
-
JAVA_OPTIONS=-server -XX:-HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/pilipa/ -Duser.timezone=Asia/Hong_Kong
-
JAVA_OPTIONS=-server -XX:-HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/pilipa/ -Duser.timezone=Asia/Hong_Kong
-
spring.rabbitmq.addresses=rabbit:5672
-
spring.rabbitmq.addresses=rabbit:5672
...
@@ -42,7 +42,7 @@ services:
...
@@ -42,7 +42,7 @@ services:
volumes
:
volumes
:
-
redis_data:/data
-
redis_data:/data
rabbit
:
rabbit
:
image
:
pilipa/rabbitmq:3.6.10-management-alpine
build
:
./rabbitmq
hostname
:
rabbit
hostname
:
rabbit
ports
:
ports
:
-
"
5672:5672"
-
"
5672:5672"
...
...
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