代码拉取完成,页面将自动刷新
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:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。