1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- version: "2"
- services:
- mongodb:
- restart: always
- container_name: crowd_service_mongo
- image: "crowd-service-mongo:${CROWD_TAG}"
- environment:
- - MONGO_INITDB_DATABASE=test
- - MONGO_INITDB_ROOT_USERNAME=mooctest
- - MONGO_INITDB_ROOT_PASSWORD=mooctest
- ports:
- - 27217:27017
- volumes:
- #- ${FILE_STORE_BASE_PATH}/${MONGO_FILE_PATH}:/data/db
- - ./init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
- command: --bind_ip_all
- tty: true
- # 众测服务后端
- crowd_service_backend:
- restart: always
- container_name: crowd_service_backend
- image: "crowd-service-backend:${CROWD_TAG}"
- depends_on:
- - mongodb
- ports:
- - 8091:8091
- volumes:
- - ${FILE_STORE_BASE_PATH}/${BACKEND_STORE_DIR}:/var/www
- # - /home/xcc/crowd-service/TestFileSystem/RequirementDoc:/var/www/RequirementDoc
- - /Users/guochao/Desktop/crowd-service/TestFileSystem/RequirementDoc:/var/www/RequirementDoc
- command: java -jar --spring.profiles.active=private-cloud --spring.data.mongodb.uri=mongodb://mooctest:mooctest@172.16.100.98:27217/test --server.ip=172.16.100.98 --main.site=http://172.16.100.98:8200 --server.port=8091 bug-0.0.1-SNAPSHOT.jar
- ##--host需要根据实际地址修改;主站配置(信创、慕测)
- # 众测服务前端
- crowd_service_frontend:
- restart: always
- container_name: crowd_service_frontend
- image: "crowd-service-frontend:${CROWD_TAG}"
- depends_on:
- - crowd_service_backend
- ports:
- - 81:80
- volumes:
- - ${FILE_STORE_BASE_PATH}/${FRONTEND_STORE_DIR}:/var/www
- - ${FILE_STORE_BASE_PATH}/nginx:/etc/nginx
- # 报告融合前后端
- crowd_service_review:
- restart: always
- container_name: crowd_service_review
- image: "crowd-service-review:${CROWD_TAG}"
- depends_on:
- - mongodb
- - crowd_service_export
- ports:
- - 9004:9004
- volumes:
- - ${FILE_STORE_BASE_PATH}/${BACKEND_STORE_DIR}/sgns.wiki.word:/project/sgns.wiki.word
- command: java -jar --spring.profiles.active=private-cloud --mongodb.host=172.16.100.98 --mongodb.port=27217 --baseurl.report.host=172.16.100.98:81 --baseurl.report.excel=http://172.16.100.98:9003/generateReport --server.port=9004 crowd_review-1.0-SNAPSHOT.jar
- ##--host需要根据实际地址修改;此处有众测后端端口配置和报告导出地址配置
- # 报告导出工具
- crowd_service_export:
- restart: always
- container_name: crowd_service_export
- image: "crowd-service-export:${CROWD_TAG}"
- ports:
- - 9003:9003
- volumes:
- - ${FILE_STORE_BASE_PATH}/${FRONTEND_STORE_DIR}:/var/www
- command: java -jar --spring.profiles.active=private-cloud --crowd.frontend=http://172.16.100.98:81 --server.port=9003 export-excel.jar
- ##--host需要根据实际地址修改;如果前端端口修改了此处也要修改
- ## 注意crowd_service_backend volumes /home/xc-community/crowd-service/TestFileSystem/RequirementDoc:/var/www/RequirementDoc 需要根据实际路径修改/home/xc-community/crowd-service
|