12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- version: '3.8'
- # 网络
- networks:
- default:
- name: default-network
- external: true
- services:
- #nginx反向代理
- cmf-nginx:
- image: "registry.cn-chengdu.aliyuncs.com/infish/pack-comm-nginx:1.23.1"
- restart: always
- ports:
- - 8087:80
- volumes:
- - ./nginx/conf.d:/etc/nginx/conf.d
- - ./nginx/www:/usr/share/nginx/html
- depends_on:
- - cmf-srv
- # - cmf-tree
-
- #bus消息中间件
- cmf-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:
- - cmf-mongo
- # - cmf-redis
- ports:
- - 14226:4222
- # cmf-redis:
- # image: "redis:alpine"
- # restart: always
- # command:
- # --requirepass "cmf" #这一行是设置密码
- # privileged: true
- # ports:
- # - 16394:6379
- cmf-mongo:
- image: mongo:4.4.1
- restart: always
- environment:
- MONGO_INITDB_ROOT_USERNAME: root
- MONGO_INITDB_ROOT_PASSWORD: cmfxxx
- volumes:
- - ~/data/packs-cmf/mongo/db:/data/db
- - ~/data/packs-cmf/mongo/log:/var/log/mongodb
- ports:
- - 17019:27017
- # user服务
- # cmf-user:
- # image: registry.cn-chengdu.aliyuncs.com/infish/pack-comm-usercenter:v1.0.1
- # restart: always
- # depends_on:
- # - cmf-bus
- # environment:
- # NATS: nats://cmf-bus:4222
- # CONFIGER_MONGO: cmf-user-mongo
- # CONFIGER_REDIS: cmf-redis
- # CONFIGER_JWT: cmf#cmfkeyvvv#168
- # user服务
- # cmf-tree:
- # image: registry.cn-chengdu.aliyuncs.com/infish/pack-queentree-cmf:v1.0.0
- # restart: always
- # depends_on:
- # - cmf-bus
- # environment:
- # NATS: nats://cmf-bus:4222
- # CONFIGER_MONGO: tree-mongo
- # CONFIGER_REDIS: cmf-redis
- cmf-srv:
- image: registry.cn-chengdu.aliyuncs.com/infish/pack-cmf:v1.0.1
- restart: always
- depends_on:
- - cmf-bus
- environment:
- NATS: nats://cmf-bus:4222
- cmf-client:
- image: registry.cn-chengdu.aliyuncs.com/infish/cmf-client:v1.0.0
- restart: always
- depends_on:
- - cmf-bus
- environment:
- NATS: nats://cmf-bus:4222
|