123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- version: '3.8'
- # 网络
- networks:
- default:
- name: default-network
- external: true
- services:
- #nginx反向代理
- 3dshow2-nginx-dev:
- image: "registry.cn-chengdu.aliyuncs.com/infish/pack-comm-nginx:1.23.1"
- restart: always
- ports:
- - 18401:80
- volumes:
- - ./nginx/conf.d:/etc/nginx/conf.d
- - ./nginx/www:/usr/share/nginx/html
- depends_on:
- # - 3dshow2
- - 3dshow2-user-dev
-
- #bus消息中间件
- 3dshow2-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:
- - 3dshow2-mongo-dev
- - 3dshow2-redis-dev
- ports:
- - 14401:4222
- #redis缓存
- 3dshow2-redis-dev:
- image: "redis:alpine"
- restart: always
- command:
- --requirepass "3dshow2zzz_x" #这一行是设置密码
- privileged: true
- ports:
- - 16401:6379
- #mongo 数据库 3dshow customer-user supply-user
- 3dshow2-mongo-dev:
- image: mongo:4.4.1
- restart: always
- environment:
- MONGO_INITDB_ROOT_USERNAME: root
- MONGO_INITDB_ROOT_PASSWORD: 3dshowzzz_x
- volumes:
- - ~/data/packs-3dshow2.0-dev/mongo/db:/data/db
- - ~/data/packs-3dshow2.0-dev/mongo/log:/var/log/mongodb
- # command: mongod --port 27017 --replSet rs0
- ports:
- - 37401:27017
- # 3dshow
- 3dshow2-dev:
- image: registry.cn-chengdu.aliyuncs.com/infish/pack-3dshow:v2.0.1
- restart: always
- depends_on:
- - 3dshow2-bus-dev
- environment:
- NATS: nats://3dshow2-bus-dev:4222
- MONGO_MIGRATIONS: /data/migrations==mongodb://root:3dshowzzz_x@3dshow2-mongo-dev:27017/3dshow?authSource=admin
-
- volumes:
- - ./mongo-migrations:/data/migrations
- # user服务
- 3dshow2-user-dev:
- image: registry.cn-chengdu.aliyuncs.com/infish/pack-comm-usercenter:v1.0.1
- restart: always
- depends_on:
- - 3dshow2-bus-dev
- environment:
- NATS: nats://3dshow2-bus-dev:4222
- CONFIGER_MONGO: 3dshow2-user-mongo-dev
- CONFIGER_REDIS: 3dshow2-redis-dev
- CONFIGER_JWT: spu3d#spu3d secret#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:3dshowzzz_x@3dshow2-mongo-dev:27017/user?authSource=admin
-
- volumes:
- - ./mongo-migrations:/data/migrations
- rembg-dev:
- image: registry.cn-chengdu.aliyuncs.com/infish/rembg:v1.0.0
- restart: always
- depends_on:
- - 3dshow2-bus-dev
- environment:
- NATSURL: nats://3dshow2-bus-dev:4222
-
|