From be7744a0dae45fb9f707e4b731d3856fbd80fff6 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Thu, 21 Jul 2022 14:19:22 +0800 Subject: [PATCH] =?UTF-8?q?docker=E5=BE=AE=E6=9C=8D=E5=8A=A1=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E5=90=AF=E5=8A=A8=EF=BC=8C=E5=A2=9E=E5=8A=A0sentinel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeecg-boot/jeecg-cloud-module/docker-compose.yml | 14 ++++++++++++++ .../jeecg-cloud-sentinel/Dockerfile | 15 +++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 jeecg-boot/jeecg-cloud-module/jeecg-cloud-sentinel/Dockerfile diff --git a/jeecg-boot/jeecg-cloud-module/docker-compose.yml b/jeecg-boot/jeecg-cloud-module/docker-compose.yml index b8be2328..2e7c0516 100644 --- a/jeecg-boot/jeecg-cloud-module/docker-compose.yml +++ b/jeecg-boot/jeecg-cloud-module/docker-compose.yml @@ -43,6 +43,20 @@ services: container_name: jeecg-boot-gateway hostname: jeecg-boot-gateway + jeecg-boot-sentinel: + restart: on-failure + build: + context: ./jeecg-cloud-sentinel + ports: + - 9000:9000 + depends_on: + - jeecg-boot-nacos + - jeecg-boot-demo + - jeecg-boot-system + - jeecg-boot-gateway + container_name: jeecg-boot-sentinel + hostname: jeecg-boot-sentinel + # jeecg-boot-xxljob: # build: # context: ./jeecg-cloud-xxljob diff --git a/jeecg-boot/jeecg-cloud-module/jeecg-cloud-sentinel/Dockerfile b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-sentinel/Dockerfile new file mode 100644 index 00000000..f2323079 --- /dev/null +++ b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-sentinel/Dockerfile @@ -0,0 +1,15 @@ +FROM anapsix/alpine-java:8_server-jre_unlimited + +MAINTAINER jeecgos@163.com + +RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime + +RUN mkdir -p /jeecg-cloud-sentinel + +WORKDIR /jeecg-cloud-sentinel + +EXPOSE 8848 + +ADD ./target/jeecg-cloud-sentinel-3.3.0.jar ./ + +CMD sleep 5;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-sentinel-3.3.0.jar