Žiadny popis

animeic 55f0e7407d update 1 rok pred
mongo-migrations 08ac8d1c7a update 1 rok pred
nginx 55f0e7407d update 1 rok pred
config-service.yaml 2d377002cd fix v2 dev init 1 rok pred
docker-compose.yaml 08ac8d1c7a update 1 rok pred
readme.md 2d377002cd fix v2 dev init 1 rok pred
start.sh 7ff05a7ad7 init 2 rokov pred

readme.md

说明

dev

nginx 184xx bus 144xx mongo 374xx redis 164xx

api路径

https://3dqueen.cloud/3dshow/v2/dev/3dshow/

包含服务

3dshow2-nginx-dev 18401

3dshow2-mongo 37401

3dshow2-redis 16401

3dshow2-bus 14401

docker中 mongo 支持事务

command: mongod --port 27017 --replSet rs0 docker exec -it pack-3dshow-3dshow2-mongo-1 mongo use admin db.auth("root","3dshowzzz_x") rs.initiate() rs.status()// 单节点副本集,事务支持

    
conf = {_id : "rs0",members: [{ _id: 0, host: "3dshow2-mongo:27017" }]}
rs.initiate({_id : "rs0",members: [{ _id: 0, host: "3dshow2-mongo:27017"}]})

### error:Our replica set config is invalid or we are not a member of it
# docker 环境
rs.reconfig({_id:"rs0",version:1,members:[{ _id:0,host:"3dshow2-mongo:27017"}]},{force:true})

# 本地运行show2服务 需要3dshow2应用能访问到,所以是192.168.110.125,不能是localhost或者127.0.0.1
rs.reconfig({_id:"rs0",version:1,members:[{ _id:0,host:"192.168.110.125:37039"}]},{force:true})
### error:Addr: localhost:27017, Type: Unknown, Last error: dial tcp 127.0.0.1:27017: connect: connection refused