animeic 2 years ago
parent
commit
1861c787e7
3 changed files with 15 additions and 14 deletions
  1. 5 5
      config-service.yaml
  2. 7 6
      docker-compose.yaml
  3. 3 3
      readme.md

+ 5 - 5
config-service.yaml

@@ -1,18 +1,18 @@
 log:
-  fileName: comm-bus.log
+  fileName: box-bus.log
   level: 1
-  serviceName: bus
+  serviceName: box-bus
   
 configer:
   -
     name: box-mongo
-    value: mongodb://root:root@boxcost-mongo:27017/box-cost?authSource=admin
-    devValue: mongodb://root:root@124.71.139.24:38000/box-cost?authSource=admin
+    value: mongodb://root:boxcost@box-mongo:27017/box-cost?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:16800#0#default#packbox
+    devValue: 124.71.139.24:16390#0#default#packbox
 
 # adapter:
 #   -

+ 7 - 6
docker-compose.yaml

@@ -3,8 +3,9 @@ version: '3.8'
 # 网络
 networks:
   default:
-    external:
-      name: default-network
+    # external:
+    #   name: default-network
+    name: default-network
 
 services:
   #nginx反向代理
@@ -28,7 +29,7 @@ services:
       - box-mongo
       - box-redis    
     ports:
-      - 15000:4222
+      - 14300:4222
 
   #redis缓存
   box-redis:
@@ -38,7 +39,7 @@ services:
       --requirepass "boxcomm" #这一行是设置密码
     privileged: true
     ports:
-      - 16800:6379
+      - 16390:6379
 
   #mongo 数据库
   box-mongo:
@@ -46,12 +47,12 @@ services:
     restart: always
     environment:
       MONGO_INITDB_ROOT_USERNAME: root
-      MONGO_INITDB_ROOT_PASSWORD: alpha
+      MONGO_INITDB_ROOT_PASSWORD: boxcost
     volumes:
       - ~/data/packs-box/mongo/db:/data/db
       - ~/data/packs-box/mongo/log:/var/log/mongodb
     ports: 
-      - 38000:27017
+      - 37030:27017
 
   # cost 8888
   box-cost:

+ 3 - 3
readme.md

@@ -4,10 +4,10 @@ box-nginx
 18088
 
 box-mongo
-38000
+37030
 
 box-redis
-16800
+16390
 
 box-bus
-15000
+14300