Browse Source

docker-compose 微服务模式脚步优化

pull/2345/head
zhangdaiscott 4 years ago
parent
commit
97c078c46a
  1. 33
      jeecg-boot/jeecg-cloud-module/docker-compose.yml
  2. 3
      jeecg-boot/jeecg-cloud-module/jeecg-cloud-system-start/Dockerfile

33
jeecg-boot/jeecg-cloud-module/docker-compose.yml

@ -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

3
jeecg-boot/jeecg-cloud-module/jeecg-cloud-system-start/Dockerfile

@ -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…
Cancel
Save