Przeglądaj źródła

增加、更改关于docker配置

dongjh 3 miesięcy temu
rodzic
commit
2e4fc657f2

+ 34 - 0
docker-stack.yml

@@ -0,0 +1,34 @@
+# stack 不支持基于第2版写的docker-compose.yml ,version版本至少为3
+version: '3'
+services:
+  redis:
+    image: redis
+    #    ports:
+    #      - 6379:6379
+    restart: always
+    deploy:
+      replicas: 2
+
+  api:
+    restart: on-failure
+    depends_on:
+      - interlock_redis
+    image: registry.cn-hangzhou.aliyuncs.com/interlock/api:1.0
+    #    ports:
+    #      - 8520:8520
+    deploy:
+      replicas: 2
+  #    environment:
+  #      - BACKEND_URL=http://interlockapi:8520
+
+  ui:
+    restart: on-failure
+    depends_on:
+      - interlock_api
+    image: registry.cn-hangzhou.aliyuncs.com/interlock/ui:1.0
+    ports:
+      - 8092:8092
+    deploy:
+      replicas: 3
+#    volumes:
+#      - ./nginx.conf:/etc/nginx/nginx.conf

+ 2 - 2
jeecg-module-system/jeecg-system-start/Dockerfile

@@ -11,6 +11,6 @@ WORKDIR /jeecg-boot
 EXPOSE 8520
 
 #ADD ./src/main/resources/jeecg ./config/jeecg
-ADD ./target/jeecg-system-start-3.4.3.jar ./
+ADD ./jeecg-system-start-3.4.3.jar ./
 
-CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar jeecg-system-start-3.4.3.jar
+CMD sleep 60;java -Djava.security.egd=file:/dev/./urandom -jar jeecg-system-start-3.4.3.jar