123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- version: '3.8'
- # 网络
- networks:
- default:
- name: default-network
- external: true
- services:
- #nginx反向代理
- # cr-nginx:
- # image: "registry.cn-chengdu.aliyuncs.com/infish/pack-comm-nginx:1.23.1"
- # restart: always
- # ports:
- # - 8085:80
- # volumes:
- # - ./nginx/conf.d:/etc/nginx/conf.d
- # - ./nginx/www:/usr/share/nginx/html
- # # - ./nginx/www:/root/www/html
- # depends_on:
- # - cr-svc
- # - cr-user
-
- #bus消息中间件
- scnict-bus:
- restart: always
- image: registry.cn-chengdu.aliyuncs.com/infish/pack-comm-bus:v1.0.0
- volumes:
- - ./config-service.yaml:/root/bus/app.yaml
- depends_on:
- - scnict-mongo
- - scnict-redis
- ports:
- - 14222:4222
- #redis缓存
- scnict-redis:
- image: "redis:alpine"
- restart: always
- command:
- --requirepass "scnictzzz_x" #这一行是设置密码
- privileged: true
- ports:
- - 16379:6379
- scnict-mongo:
- image: mongo:4.4.1
- restart: always
- environment:
- MONGO_INITDB_ROOT_USERNAME: root
- MONGO_INITDB_ROOT_PASSWORD: scnictzzz_x
- volumes:
- - ~/web/data/mongo/db:/data/db
- - ~/web/data/mongo/log:/var/log/mongodb
- - ~/web/nict:/root/nict
- ports:
- - 17017:27017
- scnict-user:
- image: registry.cn-chengdu.aliyuncs.com/infish/pack-comm-usercenter:v1.0.1
- restart: always
- depends_on:
- - scnict-bus
- environment:
- NATS: nats://scnict-bus:4222
- CONFIGER_MONGO: scnict-user-mongo
- CONFIGER_REDIS: scnict-redis
- CONFIGER_JWT: scnict#scnict_zzzzxxx#168
- IGNORE_USERTYPE: "true"
- # MONGO_MIGRATIONS: /data/migrations==mongodb://root:3dshow@3dshow-mongo-alpha:27017/supply-user?authSource=admin&&/data/migrations==mongodb://user:password@host:port/dbname?query
- MONGO_MIGRATIONS: /data/migrations==mongodb://root:scnictzzz_x@scnict-mongo:27017/user?authSource=admin
- volumes:
- - ./mongo-migrations:/data/migrations
- scnict:
- image: registry.cn-chengdu.aliyuncs.com/infish/pack-scnict:v1.0.0
- restart: always
- depends_on:
- - scnict-bus
- ports:
- - 7200:7200
- volumes:
- # api上传:配置文件上传地址assets对应/web/assets
- # dockerfile中添加assets目录到容器/root/web/assets
- # 上传文件挂载到宿主机本地目录
- - ~/web/assets:/root/web/assets
- environment:
- NATS: nats://scnict-bus:4222
|