Browse Source

修改docker配置

zq940222 2 months ago
parent
commit
845499aaf2
2 changed files with 30 additions and 12 deletions
  1. 12 12
      docker/docker-compose.yml
  2. 18 0
      gateway/Dockerfile

+ 12 - 12
docker/docker-compose.yml

@@ -76,18 +76,18 @@ services:
     networks:
       wkcrm_network:
     restart: always
-  nginx:
-    image: registry.cn-hangzhou.aliyuncs.com/72crm/nginx:latest
-    container_name: "nginx"
-    ports:
-      - "80:80"
-    volumes:
-      - ./log/nginx/:/var/log/nginx/
-      - ./conf/nginx/conf.d/:/etc/nginx/conf.d/
-      - ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf
-    networks:
-      wkcrm_network:
-    restart: always
+#  nginx:
+#    image: registry.cn-hangzhou.aliyuncs.com/72crm/nginx:latest
+#    container_name: "nginx"
+#    ports:
+#      - "80:80"
+#    volumes:
+#      - ./log/nginx/:/var/log/nginx/
+#      - ./conf/nginx/conf.d/:/etc/nginx/conf.d/
+#      - ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf
+#    networks:
+#      wkcrm_network:
+#    restart: always
   wkcrm:
     image: registry.cn-hangzhou.aliyuncs.com/72crm/crm:11.3.4
     container_name: "wkcrm"

+ 18 - 0
gateway/Dockerfile

@@ -0,0 +1,18 @@
+FROM openjdk:8-jdk-alpine
+LABEL authors="Jack"
+
+# 创建目标目录
+ARG JAR_FILE=target/wk_gateway-0.0.1-SNAPSHOT.jar
+COPY ${JAR_FILE} app.jar
+# 复制代码
+
+
+# 编译项目
+#RUN mvn clean package -DskipTests
+
+#RUN unzip gateway.zip  && \
+#    cd gateway && sh 72crm.sh start\
+
+# 暴露微服务的端口
+EXPOSE 8443
+ENTRYPOINT ["java","-jar","/app.jar"]