Sfoglia il codice sorgente

:whale: Work about Docker. add depends_on

冷冷 6 anni fa
parent
commit
fa2868d9b9
1 ha cambiato i file con 17 aggiunte e 1 eliminazioni
  1. 17 1
      docker-compose.yml

+ 17 - 1
docker-compose.yml

@@ -46,6 +46,8 @@ services:
     build:
       context: ./
       dockerfile: ./pigx-gateway/Dockerfile
+    depends_on:
+      - pigx-config
     restart: always
     container_name: pigx-gateway
     image: pigx-gateway
@@ -56,6 +58,8 @@ services:
     build:
       context: ./
       dockerfile: ./pigx-auth/Dockerfile
+    depends_on:
+      - pigx-config
     restart: always
     container_name: pigx-auth
     image: pigx-auth
@@ -64,6 +68,8 @@ services:
     build:
       context: ./
       dockerfile: ./pigx-upms/pigx-upms-biz/Dockerfile
+    depends_on:
+      - pigx-config
     restart: always
     container_name: pigx-upms
     image: pigx-upms
@@ -72,6 +78,8 @@ services:
     build:
       context: ./
       dockerfile: ./pigx-visual/pigx-monitor/Dockerfile
+    depends_on:
+      - pigx-config
     restart: always
     image: pigx-monitor
     container_name: pigx-monitor
@@ -82,6 +90,8 @@ services:
     build:
       context: ./
       dockerfile: ./pigx-visual/pigx-daemon/Dockerfile
+    depends_on:
+      - pigx-config
     restart: always
     image: pigx-daemon
     container_name: pigx-daemon
@@ -92,6 +102,8 @@ services:
     build:
       context: ./
       dockerfile: ./pigx-visual/pigx-codegen/Dockerfile
+    depends_on:
+      - pigx-config
     restart: always
     image: pigx-codegen
     container_name: pigx-codegen
@@ -101,14 +113,18 @@ services:
     build:
       context: ./
       dockerfile: ./pigx-visual/pigx-activiti/Dockerfile
+    depends_on:
+      - pigx-config
+    restart: always
     image: pigx-activiti
     container_name: pigx-activiti
-    restart: always
 
   pigx-tx-manager:
     build:
       context: ./
       dockerfile: ./pigx-visual/pigx-tx-manager/Dockerfile
+    depends_on:
+      - pigx-config
     restart: always
     image: pigx-tx-manager
     container_name: pigx-tx-manager