Commit 5abba5a0fceca075809e2be93fcb7f378610a1f6
1 parent
3eb1263c
docker微服务镜像,增加sentinel
Showing
2 changed files
with
29 additions
and
0 deletions
jeecg-boot/jeecg-cloud-module/docker-compose.yml
... | ... | @@ -43,6 +43,20 @@ services: |
43 | 43 | container_name: jeecg-boot-gateway |
44 | 44 | hostname: jeecg-boot-gateway |
45 | 45 | |
46 | + jeecg-boot-sentinel: | |
47 | + restart: on-failure | |
48 | + build: | |
49 | + context: ./jeecg-cloud-sentinel | |
50 | + ports: | |
51 | + - 9000:9000 | |
52 | + depends_on: | |
53 | + - jeecg-boot-nacos | |
54 | + - jeecg-boot-demo | |
55 | + - jeecg-boot-system | |
56 | + - jeecg-boot-gateway | |
57 | + container_name: jeecg-boot-sentinel | |
58 | + hostname: jeecg-boot-sentinel | |
59 | + | |
46 | 60 | # jeecg-boot-xxljob: |
47 | 61 | # build: |
48 | 62 | # context: ./jeecg-cloud-xxljob |
... | ... |
jeecg-boot/jeecg-cloud-module/jeecg-cloud-sentinel/Dockerfile
0 → 100644
1 | +FROM anapsix/alpine-java:8_server-jre_unlimited | |
2 | + | |
3 | +MAINTAINER jeecgos@163.com | |
4 | + | |
5 | +RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | |
6 | + | |
7 | +RUN mkdir -p /jeecg-cloud-sentinel | |
8 | + | |
9 | +WORKDIR /jeecg-cloud-sentinel | |
10 | + | |
11 | +EXPOSE 8848 | |
12 | + | |
13 | +ADD ./target/jeecg-cloud-sentinel-3.3.0.jar ./ | |
14 | + | |
15 | +CMD sleep 5;java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-sentinel-3.3.0.jar | |
... | ... |