animeic 2 lat temu
rodzic
commit
2f6ba9f4f1
4 zmienionych plików z 27 dodań i 17 usunięć
  1. 9 2
      config-service.yaml
  2. 10 10
      docker-compose.yaml
  3. 5 5
      nginx/conf.d/default.conf
  4. 3 0
      readme.md

+ 9 - 2
config-service.yaml

@@ -7,12 +7,19 @@ configer:
   -
     name: box-mongo
     value: mongodb://root:boxcost@box-mongo:27017/box-cost?authSource=admin
-    devValue: mongodb://root:boxcost@124.71.139.24:37030/box-cost?authSource=admin
+    devValue: mongodb://root:boxcost@127.0.0.1:37030/box-cost?authSource=admin
+    # devValue: mongodb://root:boxcost@124.71.139.24:37030/box-cost?authSource=admin
+  -
+    name: box-user-mongo
+    value: mongodb://root:boxcost@box-mongo:27017/box-user?authSource=admin
+    devValue: mongodb://root:boxcost@127.0.0.1:37030/box-user?authSource=admin
+    # devValue: mongodb://root:boxcost@124.71.139.24:37030/box-cost?authSource=admin
 
   -
     name: box-redis
     value: box-redis:6379#0#default#packbox
-    devValue: 124.71.139.24:16390#0#default#packbox
+    devValue: 127.0.0.1:16390#0#default#packbox
+    # devValue: 124.71.139.24:16390#0#default#packbox
 
 # adapter:
 #   -

+ 10 - 10
docker-compose.yaml

@@ -3,9 +3,9 @@ version: '3.8'
 # 网络
 networks:
   default:
-    # external:
-    #   name: default-network
-    name: default-network
+    external:
+      name: default-network
+    # name: default-network
 
 services:
   #nginx反向代理
@@ -64,10 +64,10 @@ services:
       NATS: nats://box-bus:4222
 
   # 用户中心 8908
-  # box-usercenter:
-  #   image: registry.cn-chengdu.aliyuncs.com/infish/pack-box-usercenter:v1.0.0
-  #   restart: always
-  #   depends_on:
-  #     - box-bus
-  #   environment: 
-  #     NATS: nats://box-bus:4222
+  box-usercenter:
+    image: registry.cn-chengdu.aliyuncs.com/infish/pack-box-usercenter:v1.0.0
+    restart: always
+    depends_on:
+      - box-bus
+    environment: 
+      NATS: nats://box-bus:4222

+ 5 - 5
nginx/conf.d/default.conf

@@ -40,14 +40,14 @@ server {
     #}
 
     # box-cost
-    location /cost-manage/ {
-       proxy_pass  http://box-cost:8888/;
+    location /boxcost/ {
+       proxy_pass  http://box-cost:8888/boxcost/;
     }   
 
     # 用户接口
-    # location /usercenter/ {
-    #    proxy_pass  http://comm-usercenter:8908/usercenter/;
-    # }
+    location /usercenter/ {
+       proxy_pass  http://box-usercenter:8908/usercenter/;
+    }
 
     #nats-exporter
     # location /natsexporter/ {

+ 3 - 0
readme.md

@@ -11,3 +11,6 @@ box-redis
 
 box-bus
 14300
+
+box-usercenter
+https://3dqueen.cloud/box/v1/usercenter/