123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- version: '3.8'
- # 网络
- networks:
- default:
- name: default-network
- external: true
- services:
- #nginx反向代理
- box-nginx:
- image: "registry.cn-chengdu.aliyuncs.com/infish/pack-comm-nginx:1.23.1"
- restart: always
- ports:
- - 18088:80
- volumes:
- - ./nginx/conf.d:/etc/nginx/conf.d
- - ./nginx/www:/usr/share/nginx/html
- # links:
- # - box-cost
- # - box-usercenter
- depends_on:
- - box-cost
- - box-usercenter
- #bus消息中间件
- box-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:
- - box-mongo
- - box-redis
- ports:
- - 14300:4222
- #redis缓存
- box-redis:
- image: "redis:alpine"
- restart: always
- command:
- --requirepass "boxcomm" #这一行是设置密码
- privileged: true
- ports:
- - 16390:6379
- #mongo 数据库
- box-mongo:
- image: mongo:4.4.1
- restart: always
- environment:
- MONGO_INITDB_ROOT_USERNAME: root
- MONGO_INITDB_ROOT_PASSWORD: boxcost
- volumes:
- - ~/data/packs-box/mongo/db:/data/db
- - ~/data/packs-box/mongo/log:/var/log/mongodb
- ports:
- - 37030:27017
- # cost 8888
- box-cost:
- # image: registry.cn-chengdu.aliyuncs.com/infish/pack-box-cost:v1.0.0
- # dev
- image: registry.cn-chengdu.aliyuncs.com/infish/pack-box-cost:v1.0.6
- restart: always
- depends_on:
- - box-bus
- environment:
- NATS: nats://box-bus:4222
- TOPDF_ADDR: http://office-pdf:3000
- volumes:
- - ~/data/packs-box/signature:/root/box-cost/signature
- # 用户中心 8908
- box-usercenter:
- image: registry.cn-chengdu.aliyuncs.com/infish/pack-comm-usercenter:v1.0.1
- restart: always
- depends_on:
- - box-bus
- environment:
- NATS: nats://box-bus:4222
- CONFIGER_MONGO: box-user-mongo
- CONFIGER_REDIS: box-redis
- 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:boxcost@box-mongo:27017/box-user?authSource=admin
- volumes:
- - ./mongo-migrations:/data/migrations
- # excel 转pdf
- office-pdf:
- image: thecodingmachine/gotenberg:6.4.4
- restart: always
- # dev
- ports:
- - 3000:3000
|