mirror of https://github.com/jeecgboot/jeecg-boot
docker-compose 微服务模式脚步优化
parent
17019e6261
commit
97c078c46a
|
@ -26,15 +26,6 @@ services:
|
|||
restart: always
|
||||
container_name: jeecg-boot-redis
|
||||
hostname: jeecg-boot-redis
|
||||
jeecg-boot-rabbitmq:
|
||||
# image: rabbitmq:3-management
|
||||
image: rabbitmq:3
|
||||
ports:
|
||||
- 5672:5672
|
||||
# - 15672:15672
|
||||
restart: always
|
||||
container_name: jeecg-boot-rabbitmq
|
||||
hostname: jeecg-boot-rabbitmq
|
||||
|
||||
jeecg-boot-nacos:
|
||||
restart: always
|
||||
|
@ -67,10 +58,20 @@ services:
|
|||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
|
||||
jeecg-boot-xxljob:
|
||||
build:
|
||||
context: ./jeecg-cloud-xxljob
|
||||
ports:
|
||||
- 9080:9080
|
||||
container_name: jeecg-boot-xxljob
|
||||
hostname: jeecg-boot-xxljob
|
||||
# jeecg-boot-rabbitmq:
|
||||
# # image: rabbitmq:3-management
|
||||
# image: rabbitmq:3
|
||||
# ports:
|
||||
# - 5672:5672
|
||||
# # - 15672:15672
|
||||
# restart: always
|
||||
# container_name: jeecg-boot-rabbitmq
|
||||
# hostname: jeecg-boot-rabbitmq
|
||||
|
||||
# jeecg-boot-xxljob:
|
||||
# build:
|
||||
# context: ./jeecg-cloud-xxljob
|
||||
# ports:
|
||||
# - 9080:9080
|
||||
# container_name: jeecg-boot-xxljob
|
||||
# hostname: jeecg-boot-xxljob
|
|
@ -12,5 +12,4 @@ EXPOSE 7001
|
|||
|
||||
ADD ./target/jeecg-cloud-system-start-2.4.2.jar ./
|
||||
|
||||
CMD java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-system-start-2.4.2.jar
|
||||
|
||||
CMD sleep 60;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-system-start-2.4.2.jar
|
Loading…
Reference in New Issue