|
@@ -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:
|