animeic 2 år sedan
förälder
incheckning
b003da6a65
2 ändrade filer med 18 tillägg och 4 borttagningar
  1. 11 2
      docker-compose.yaml
  2. 7 2
      nginx/conf.d/default.conf

+ 11 - 2
docker-compose.yaml

@@ -53,7 +53,16 @@ services:
     ports: 
       - 37031:27017
 
-  # 3dshow 8888
+  # 3dshow old
+  3dshow:
+    image: registry.cn-chengdu.aliyuncs.com/infish/pack-3dshow:v1.0.0
+    restart: always
+    depends_on:
+      - 3dshow-bus
+    environment: 
+      NATS: nats://3dshow-bus:4222
+
+  # 3dshow customer
   3dshow-customer:
     image: registry.cn-chengdu.aliyuncs.com/infish/pack-3dshow-customer:v1.0.0
     restart: always
@@ -62,7 +71,7 @@ services:
     environment: 
       NATS: nats://3dshow-bus:4222
 
-  # 3dshow 8888
+  # 3dshow supplier
   3dshow-supplier:
     image: registry.cn-chengdu.aliyuncs.com/infish/pack-3dshow-supplier:v1.0.0
     restart: always

+ 7 - 2
nginx/conf.d/default.conf

@@ -39,10 +39,15 @@ server {
     #    deny  all;
     #}
 
-    # 3dshow
+    # 3dshow old
+    location /3dshow/ {
+       proxy_pass  http://3dshow:8888/3dshow/;
+    }   
+
     location /supplier/ {
        proxy_pass  http://3dshow-supplier:8888/supplier/;
-    }   
+    }  
+
     location /customer/ {
        proxy_pass  http://3dshow-customer:8888/customer/;
     }