Переглянути джерело

docker-compose运行脚本修改,针对jenkins部署方案,与服务器上的脚本不冲突

ZhangWenQiang 3 роки тому
батько
коміт
35f62cd93e
1 змінених файлів з 43 додано та 53 видалено
  1. 43 53
      cloud/docker-compose/happy-cloud/docker-compose.yml

+ 43 - 53
cloud/docker-compose/happy-cloud/docker-compose.yml

@@ -2,7 +2,7 @@ version: '3.8'
 services:
   happy-cloud-gateway:
     build:
-      context: /mnt/product/cloud/jar/happy-cloud-gateway
+      context: ../../../happy-cloud-gateway
     restart: always
     ports:
       - 9999:9999
@@ -10,9 +10,7 @@ services:
     hostname: happy-cloud-gateway
     image: happy-cloud-gateway
     env_file:
-      - /mnt/product/cloud/happycloud/java_opts.env  #指定配置文件启动
-    volumes:
-      - /mnt/product/cloud/jar/happy-cloud-gateway/log:/cloud/logs/happy-cloud-gateway  #挂载logback日志
+      - ../../../doc/happycloud/java_opts.env  #指定配置文件启动
     environment:
       - "TZ=Asia/Shanghai"
     networks:
@@ -20,15 +18,13 @@ services:
 
   happy-cloud-system:
     build:
-      context: /mnt/product/cloud/jar/happy-cloud-system-biz
+      context: ../../../happy-cloud-system/happy-cloud-system-biz
     restart: always
     container_name: happy-cloud-system
     hostname: happy-cloud-system
     image: happy-cloud-system
     env_file:
-      - /mnt/product/cloud/happycloud/java_opts.env  #指定配置文件启动
-    volumes:
-      - /mnt/product/cloud/jar/happy-cloud-system-biz/log:/cloud/logs/happy-cloud-system-biz #挂载logback日志
+      - ../../../doc/happycloud/java_opts.env  #指定配置文件启动
     environment:
       - "TZ=Asia/Shanghai"
     networks:
@@ -36,15 +32,13 @@ services:
 
   happy-cloud-wisdom:
     build:
-      context: /mnt/product/cloud/jar/happy-cloud-wisdom-biz
+      context: ../../../happy-cloud-wisdom/happy-cloud-wisdom-biz
     restart: always
     container_name: happy-cloud-wisdom
     hostname: happy-cloud-wisdom
     image: happy-cloud-wisdom
     env_file:
-      - /mnt/product/cloud/happycloud/java_opts.env  #指定配置文件启动
-    volumes:
-      - /mnt/product/cloud/jar/happy-cloud-wisdom-biz/log:/cloud/logs/happy-cloud-wisdom-biz
+      - ../../../doc/happycloud/java_opts.env  #指定配置文件启动
     environment:
       - "TZ=Asia/Shanghai"
     networks:
@@ -53,7 +47,7 @@ services:
   #分布式定时任务
   happy-cloud-xxl-job:
     build:
-      context: /mnt/product/cloud/jar/happy-cloud-xxl-job
+      context: ../../../happy-cloud-xxl-job/happy-cloud-xxl-job-admin
     restart: always
     ports:
       - 9004:8004
@@ -61,9 +55,7 @@ services:
     hostname: happy-cloud-xxl-job
     image: happy-cloud-xxl-job
     env_file:
-      - /mnt/product/cloud/happycloud/java_opts.env  #指定配置文件启动
-    volumes:
-      - /mnt/product/cloud/jar/happy-cloud-xxl-job/log:/cloud/logs/happy-cloud-xxl-job
+      - ../../../doc/happycloud/java_opts.env  #指定配置文件启动
     environment:
       - "TZ=Asia/Shanghai"
     networks:
@@ -71,54 +63,52 @@ services:
 
   happy-cloud-auth:
     build:
-      context: /mnt/product/cloud/jar/happy-cloud-auth
+      context: ../../../happy-cloud-auth
     restart: always
     container_name: happy-cloud-auth
     hostname: happy-cloud-auth
     image: happy-cloud-auth
     env_file:
-      - /mnt/product/cloud/happycloud/java_opts.env  #指定配置文件启动
-    volumes:
-      - /mnt/product/cloud/jar/happy-cloud-auth/log:/cloud/logs/happy-cloud-auth
+      - ../../../doc/happycloud/java_opts.env  #指定配置文件启动
     environment:
       - "TZ=Asia/Shanghai"
     networks:
       - custom_net
 
   #sentinel限流
-  happy-cloud-sentinel:
-    build:
-      context: /mnt/product/cloud/jar/happy-cloud-sentinel
-    restart: always
-    ports:
-      - 8888:8888
-    env_file:
-      - /mnt/product/cloud/sentinel/env/sentinel.env  #指定配置文件启动
-    volumes:
-      - /mnt/product/cloud/jar/happy-cloud-sentinel/log:/root/logs/csp   #日志挂载
-    container_name: happy-cloud-sentinel
-    hostname: happy-cloud-sentinel
-    image: happy-cloud-sentinel
-    networks:
-      - custom_net
-
-  happy-cloud-monitor:
-    build:
-      context: /mnt/product/cloud/jar/happy-cloud-monitor
-    restart: always
-    ports:
-      - 9111:9111
-    container_name: happy-cloud-monitor
-    hostname: happy-cloud-monitor
-    image: happy-cloud-monitor
-    env_file:
-      - /mnt/product/cloud/happycloud/java_opts.env  #指定配置文件启动
-    volumes:
-      - /mnt/product/cloud/jar/happy-cloud-monitor/log:/cloud/logs/happy-cloud-monitor
-    environment:
-      - "TZ=Asia/Shanghai"
-    networks:
-      - custom_net
+#  happy-cloud-sentinel:
+#    build:
+#      context: /mnt/product/cloud/jar/happy-cloud-sentinel
+#    restart: always
+#    ports:
+#      - 8888:8888
+#    env_file:
+#      - /mnt/product/cloud/sentinel/env/sentinel.env  #指定配置文件启动
+#    volumes:
+#      - /mnt/product/cloud/jar/happy-cloud-sentinel/log:/root/logs/csp   #日志挂载
+#    container_name: happy-cloud-sentinel
+#    hostname: happy-cloud-sentinel
+#    image: happy-cloud-sentinel
+#    networks:
+#      - custom_net
+#
+#  happy-cloud-monitor:
+#    build:
+#      context: /mnt/product/cloud/jar/happy-cloud-monitor
+#    restart: always
+#    ports:
+#      - 9111:9111
+#    container_name: happy-cloud-monitor
+#    hostname: happy-cloud-monitor
+#    image: happy-cloud-monitor
+#    env_file:
+#      - /mnt/product/cloud/happycloud/java_opts.env  #指定配置文件启动
+#    volumes:
+#      - /mnt/product/cloud/jar/happy-cloud-monitor/log:/cloud/logs/happy-cloud-monitor
+#    environment:
+#      - "TZ=Asia/Shanghai"
+#    networks:
+#      - custom_net
 
 networks:
   custom_net: