1 Star 0 Fork 0

counting stars/OnlineJudgeMicroService

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.service.yml 1.87 KB
一键复制 编辑 原始数据 按行查看 历史
version: '3'
services:
yuoj-backend-gateway:
container_name: yuoj-backend-gateway
build: # 服务的 Docker 构建文件位置 每一个带有启动类的业务服务都存在一个Dockerfile文件 找到这个文件进行执行
context: ./yuoj-backend-gateway
dockerfile: Dockerfile
ports:
- "8101:8101"
networks:
- mynetwork
yuoj-backend-user-service:
container_name: yuoj-backend-user-service
build:
context: ./yuoj-backend-user-service
dockerfile: Dockerfile
ports:
- "8102:8102"
networks:
- mynetwork
depends_on: # 本服务依赖的服务,控制启动先后顺序 比如先启动网关再到用户服务
- yuoj-backend-gateway
yuoj-backend-question-service:
container_name: yuoj-backend-question-service
build:
context: ./yuoj-backend-question-service
dockerfile: Dockerfile
ports:
- "8103:8103"
networks:
- mynetwork
depends_on:
- yuoj-backend-user-service
- yuoj-backend-gateway
yuoj-backend-judge-service:
container_name: yuoj-backend-judge-service
build:
context: ./yuoj-backend-judge-service
dockerfile: Dockerfile
ports:
- "8104:8104"
networks:
- mynetwork
depends_on: # 本服务依赖的服务,控制启动先后顺序
- yuoj-backend-user-service
- yuoj-backend-question-service
- yuoj-backend-gateway
backend-checkcode:
container_name: backend-checkcode
build:
context: ./backend-checkcode
dockerfile: Dockerfile
ports:
- "8107:8107"
networks:
- mynetwork
depends_on: # 本服务依赖的服务,控制启动先后顺序
- yuoj-backend-user-service
- yuoj-backend-question-service
- yuoj-backend-gateway
- yuoj-backend-judge-service
# 网络,不定义的话就是默认网络
networks:
mynetwork:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Smile-Lyf/online-judge-micro-service.git
git@gitee.com:Smile-Lyf/online-judge-micro-service.git
Smile-Lyf
online-judge-micro-service
OnlineJudgeMicroService
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385