Prechádzať zdrojové kódy

项目启动脚本开放

ZhangWenQiang 5 rokov pred
rodič
commit
35e8df78d4

+ 46 - 46
cloud/docker-compose/happy-cloud/docker-compose.yml

@@ -61,52 +61,52 @@ services:
     networks:
       - custom_net
 
-#  happy-cloud-auth:
-#    build:
-#      context: /mnt/product/cloud/jar/happy-cloud-auth
-#    restart: always
-#    container_name: happy-cloud-auth
-#    hostname: happy-cloud-auth
-#    image: happy-cloud-auth
-#    volumes:
-#      - /mnt/product/cloud/jar/happy-cloud-auth/log:/cloud/logs/happy-cloud-auth
-#    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
-#    volumes:
-#      - /mnt/product/cloud/jar/happy-cloud-monitor/log:/cloud/logs/happy-cloud-monitor
-#    environment:
-#      - "TZ=Asia/Shanghai"
-#    networks:
-#      - custom_net
+  happy-cloud-auth:
+    build:
+      context: /mnt/product/cloud/jar/happy-cloud-auth
+    restart: always
+    container_name: happy-cloud-auth
+    hostname: happy-cloud-auth
+    image: happy-cloud-auth
+    volumes:
+      - /mnt/product/cloud/jar/happy-cloud-auth/log:/cloud/logs/happy-cloud-auth
+    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
+    volumes:
+      - /mnt/product/cloud/jar/happy-cloud-monitor/log:/cloud/logs/happy-cloud-monitor
+    environment:
+      - "TZ=Asia/Shanghai"
+    networks:
+      - custom_net
 
 networks:
   custom_net: