|
@@ -0,0 +1,67 @@
|
|
|
+version: '3.8'
|
|
|
+
|
|
|
+# 网络
|
|
|
+networks:
|
|
|
+ default:
|
|
|
+ name: default-network
|
|
|
+ external: true
|
|
|
+
|
|
|
+services:
|
|
|
+ #nginx反向代理
|
|
|
+ copter-train-nginx:
|
|
|
+ image: "registry.cn-chengdu.aliyuncs.com/infish/pack-comm-nginx:1.23.1"
|
|
|
+ restart: always
|
|
|
+ ports:
|
|
|
+ - 8101:80
|
|
|
+ volumes:
|
|
|
+ - ./nginx/conf.d:/etc/nginx/conf.d
|
|
|
+ - ./nginx/www:/usr/share/nginx/html
|
|
|
+
|
|
|
+ depends_on:
|
|
|
+ - copter-train
|
|
|
+
|
|
|
+ #bus消息中间件
|
|
|
+ copter-train-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:
|
|
|
+ - copter-train-mongo
|
|
|
+ - copter-train-redis
|
|
|
+ ports:
|
|
|
+ - 4223:4222
|
|
|
+
|
|
|
+ #redis缓存
|
|
|
+ copter-train-redis:
|
|
|
+ image: "redis:alpine"
|
|
|
+ restart: always
|
|
|
+ command:
|
|
|
+ --requirepass "copter_vxxx" #这一行是设置密码
|
|
|
+ privileged: true
|
|
|
+ # ports:
|
|
|
+ # - 6397:6379
|
|
|
+
|
|
|
+ #mongo 数据库
|
|
|
+ copter-train-mongo:
|
|
|
+ image: mongo:4.4.1
|
|
|
+ restart: always
|
|
|
+ environment:
|
|
|
+ MONGO_INITDB_ROOT_USERNAME: root
|
|
|
+ MONGO_INITDB_ROOT_PASSWORD: copter-train-8888
|
|
|
+ volumes:
|
|
|
+ - /data/project-data/pack-copter-train/mongo/db:/data/db
|
|
|
+ - /data/project-data/pack-copter-train/mongo/log:/var/log/mongodb
|
|
|
+ ports:
|
|
|
+ - 27019:27017
|
|
|
+
|
|
|
+ copter-train:
|
|
|
+ image: registry.cn-chengdu.aliyuncs.com/infish/pack-copter-train:v1.0.0
|
|
|
+ restart: always
|
|
|
+ depends_on:
|
|
|
+ - copter-train-bus
|
|
|
+ environment:
|
|
|
+ NATS: nats://copter-train-bus:4222
|
|
|
+ CONFIGER_MONGO: copter-train-mongo
|
|
|
+ CONFIGER_REDIS: copter-train-redis
|
|
|
+
|