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-usercenter # 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: crpi-tlcs37dul3eo9h1x.cn-hangzhou.personal.cr.aliyuncs.com/lymat/mongo:4.4.1 restart: always environment: MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_PASSWORD: hangzhou_manage_mat_2025 volumes: - ~/data/pack-sku3d/mongo/db:/data/db - ~/data/pack-sku3d/mongo/log:/var/log/mongodb ports: - 37018:27017 # fassi 搜图api sku3d-fassi: image: crpi-tlcs37dul3eo9h1x.cn-hangzhou.personal.cr.aliyuncs.com/lymat/fassi:v1 restart: always environment: MONGODB: mongodb://root:hangzhou_manage_mat_2025@sku3d-mongo:27017/ # ALIYUN_FUNCTION_URL: https://imagefeature-hauveswkcf.cn-hangzhou.fcapp.run # ALIYUN_FUNCTION_URL: http://172.31.69.25:5001 ALIYUN_FUNCTION_URL: https://imagefeaturev-vgshhkguxd.cn-hangzhou.fcapp.run #user服务 sku3d-usercenter: image: crpi-tlcs37dul3eo9h1x.cn-hangzhou.personal.cr.aliyuncs.com/lymat/usercenter:v1 restart: always depends_on: - sku3d-bus environment: NATS: nats://sku3d-bus:4222 # website api服务 sku3d-website: image: crpi-tlcs37dul3eo9h1x.cn-hangzhou.personal.cr.aliyuncs.com/lymat/website:v1.1 restart: always depends_on: - sku3d-bus environment: NATS: nats://sku3d-bus:4222 SEARCH_IMAGE_ADDR: http://sku3d-fassi:5000