version: '3.8' # 网络 networks: default: name: default-network external: true services: #nginx反向代理 3dshow-nginx: image: "registry.cn-chengdu.aliyuncs.com/infish/pack-comm-nginx:1.23.1" restart: always ports: - 18094:80 volumes: - ./nginx/conf.d:/etc/nginx/conf.d - ./nginx/www:/usr/share/nginx/html depends_on: - 3dshow-customer-dev - 3dshow-supplier-dev - 3dshow-supply-user-dev - 3dshow-customer-user-dev #bus消息中间件 3dshow-bus-dev: 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: - 3dshow-mongo-dev - 3dshow-redis-dev ports: - 14305:4222 #redis缓存 3dshow-redis-dev: image: "redis:alpine" restart: always command: --requirepass "3dshow" #这一行是设置密码 privileged: true ports: - 16393:6379 #mongo 数据库 3dshow customer-user supply-user 3dshow-mongo-dev: image: mongo:4.4.1 restart: always environment: MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_PASSWORD: 3dshow volumes: - ~/data/packs-3dshow-dev/mongo/db:/data/db - ~/data/packs-3dshow-dev/mongo/log:/var/log/mongodb ports: - 37036:27017 # 3dshow customer 3dshow-customer-dev: image: registry.cn-chengdu.aliyuncs.com/infish/pack-3dshow-customer:v1.0.0 restart: always depends_on: - 3dshow-bus-dev environment: NATS: nats://3dshow-bus-dev:4222 # 3dshow supplier 3dshow-supplier-dev: image: registry.cn-chengdu.aliyuncs.com/infish/pack-3dshow-supplier:v1.0.0 restart: always depends_on: - 3dshow-bus-dev environment: NATS: nats://3dshow-bus-dev:4222 # user服务 3dshow-supply-user-dev: image: registry.cn-chengdu.aliyuncs.com/infish/pack-comm-usercenter:v1.0.0 restart: always depends_on: - 3dshow-bus-dev environment: NATS: nats://3dshow-bus-dev:4222 CONFIGER_MONGO: 3dshow-supply-user-mongo CONFIGER_REDIS: 3dshow-redis # c端用户 3dshow-customer-user-dev: image: registry.cn-chengdu.aliyuncs.com/infish/pack-comm-usercenter:v1.0.0 restart: always depends_on: - 3dshow-bus-dev environment: NATS: nats://3dshow-bus-dev:4222 CONFIGER_MONGO: 3dshow-customer-user-mongo CONFIGER_REDIS: 3dshow-redis