123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- version: '3.8'
- # 网络
- networks:
- default:
- name: default-network
- external: true
- # 服务
- services:
- #nginx反向代理
- sku3d-nginx:
- image: "registry.cn-chengdu.aliyuncs.com/infish/pack-comm-nginx:1.23.1"
- restart: always
- ports:
- - 18081:80
- volumes:
- - ./nginx/conf.d:/etc/nginx/conf.d
- - ./nginx/www:/usr/share/nginx/html
- depends_on:
- - sku3d-mall
- - sku3d-usercenter
- - sku3d-website
- - sku3d-malluser
- # nats消息中间件
- sku3d-bus:
- restart: always
- image: registry.cn-chengdu.aliyuncs.com/infish/pack-comm-bus:v1.0.1
- volumes:
- - ./config-service.yaml:/root/bus/app.yaml
- depends_on:
- - sku3d-mongo
- - sku3d-redis
- ports:
- - 14223:4222
- # redis缓存
- sku3d-redis:
- image: "redis:alpine"
- restart: always
- command:
- --requirepass "packsku3d" #这一行是设置密码
- privileged: true
- ports:
- - 16379:6379
- # mongo数据库
- sku3d-mongo:
- image: mongo:4.4.1
- restart: always
- environment:
- MONGO_INITDB_ROOT_USERNAME: root
- MONGO_INITDB_ROOT_PASSWORD: root
- volumes:
- - ~/data/packs-sku3d/mongo/db:/data/db
- - ~/data/packs-sku3d/mongo/log:/var/log/mongodb
- ports:
- - 37018:27017
- # 商城服务
- sku3d-mall:
- image: registry.cn-chengdu.aliyuncs.com/infish/pack-sku3d-mall:v1.0.2
- restart: always
- depends_on:
- - sku3d-bus
- environment:
- NATS: nats://sku3d-bus:4222
- #user服务
- sku3d-usercenter:
- image: registry.cn-chengdu.aliyuncs.com/infish/pack-comm-usercenter:v1.0.0
- restart: always
- depends_on:
- - sku3d-bus
- environment:
- NATS: nats://sku3d-bus:4222
-
- #商城c端用户
- sku3d-malluser:
- image: registry.cn-chengdu.aliyuncs.com/infish/pack-sku3d-malluser:v1.0.0
- restart: always
- depends_on:
- - sku3d-bus
- environment:
- NATS: nats://sku3d-bus:4222
- #sku3d-webite官网服务
- sku3d-website:
- image: registry.cn-chengdu.aliyuncs.com/infish/pack-sku3d-website:v1.0.0
- restart: always
- depends_on:
- - sku3d-bus
- environment:
- NATS: nats://sku3d-bus:4222
- #商城c端用户
- eps2svg-srv:
- image: registry.cn-chengdu.aliyuncs.com/infish/eps2svg:v1.0.0
- restart: always
|