mirror of https://github.com/jeecgboot/jeecg-boot
docker-compose 微服务模式脚步优化
parent
17019e6261
commit
97c078c46a
|
@ -26,15 +26,6 @@ services:
|
||||||
restart: always
|
restart: always
|
||||||
container_name: jeecg-boot-redis
|
container_name: jeecg-boot-redis
|
||||||
hostname: 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:
|
jeecg-boot-nacos:
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -67,10 +58,20 @@ services:
|
||||||
environment:
|
environment:
|
||||||
- TZ=Asia/Shanghai
|
- TZ=Asia/Shanghai
|
||||||
|
|
||||||
jeecg-boot-xxljob:
|
# jeecg-boot-rabbitmq:
|
||||||
build:
|
# # image: rabbitmq:3-management
|
||||||
context: ./jeecg-cloud-xxljob
|
# image: rabbitmq:3
|
||||||
ports:
|
# ports:
|
||||||
- 9080:9080
|
# - 5672:5672
|
||||||
container_name: jeecg-boot-xxljob
|
# # - 15672:15672
|
||||||
hostname: jeecg-boot-xxljob
|
# 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 ./
|
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