123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- version: '3.8'
- # 网络
- networks:
- default:
- name: default-network
- external: true
- services:
- moutai-nginx:
- image: "registry.cn-chengdu.aliyuncs.com/infish/pack-comm-nginx:1.23.1"
- restart: always
- ports:
- - 8086:80
- volumes:
- - ./nginx/conf.d:/etc/nginx/conf.d
- - ./nginx/www:/usr/share/nginx/html
- depends_on:
- - moutai-svc
-
- #bus消息中间件
- moutai-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:
- - moutai-mongo
- ports:
- - 14223:4222
- moutai-mongo:
- image: mongo:4.4.1
- restart: always
- environment:
- MONGO_INITDB_ROOT_USERNAME: root
- MONGO_INITDB_ROOT_PASSWORD: moutai_zzzxxx
- volumes:
- - /data/moutai/mongo/db:/data/db
- - /data/moutai/mongo/log:/var/log/mongodb
- ports:
- - 17017:27017
- moutai-svc:
- image: registry.cn-chengdu.aliyuncs.com/infish/pack-moutai:v1.0.0
- restart: always
- depends_on:
- - moutai-bus
- volumes:
- - ./mongo-migrations:/root/projects/migrations
- environment:
- NATS: nats://moutai-bus:4222
- MONGO_MIGRATIONS: /root/projects/migrations==mongodb://root:moutai_zzzxxx@moutai-mongo:27017/moutai?authSource=admin
|