加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 2.29 KB
一键复制 编辑 原始数据 按行查看 历史
zklcdc 提交于 2021-08-06 22:32 . [Fix] Live2D Support CDN
version: "3"
services:
oj-redis:
image: redis:6.0-alpine
container_name: oj-redis
restart: always
volumes:
- $PWD/data/redis:/data
oj-postgres:
image: postgres:10-alpine
container_name: oj-postgres
restart: always
volumes:
- $PWD/data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_DB=onlinejudge
- POSTGRES_USER=onlinejudge
- POSTGRES_PASSWORD=onlinejudge
oj-forum:
image: php:7.4-fpm-alpine
container_name: oj-forum
restart: always
volumes:
- $PWD/data/forum:/forum
environment:
# - STATIC_CDN_HOST=http://cdn.oj.com
judge-server:
# image: registry.cn-hangzhou.aliyuncs.com/onlinejudge/judge_server
# 原版镜像
# image: registry.cn-hangzhou.aliyuncs.com/wenjian_oj/judgeserver
# 开发版镜像
image: registry.cn-qingdao.aliyuncs.com/wenjian_oj/judge_server
# 稳定版镜像
container_name: judge-server
restart: always
read_only: true
cap_drop:
- SETPCAP
- MKNOD
- NET_BIND_SERVICE
- SYS_CHROOT
- SETFCAP
- FSETID
tmpfs:
- /tmp
volumes:
- $PWD/data/backend/test_case:/test_case:ro
- $PWD/data/judge_server/log:/log
- $PWD/data/judge_server/run:/judger
environment:
- SERVICE_URL=http://judge-server:8080
- BACKEND_URL=http://oj-backend:8000/api/judge_server_heartbeat/
- TOKEN=CHANGE_THIS
# - judger_debug=1
oj-backend:
image: registry.cn-qingdao.aliyuncs.com/wenjian_oj/backend
# 稳定版
# image: registry.cn-hangzhou.aliyuncs.com/wenjian_oj/oj-backend
# 开发版
# image: registry.cn-qingdao.aliyuncs.com/wenjian_oj/vue
# 版本备份镜像仓库
# image: registry.cn-hangzhou.aliyuncs.com/onlinejudge/oj_backend
# 官方版
container_name: oj-backend
restart: always
depends_on:
- oj-redis
- oj-postgres
- judge-server
- oj-forum
volumes:
- $PWD/data/backend:/data
- $PWD/data/forum:/forum
environment:
- POSTGRES_DB=onlinejudge
- POSTGRES_USER=onlinejudge
- POSTGRES_PASSWORD=onlinejudge
- JUDGE_SERVER_TOKEN=CHANGE_THIS
# - FORCE_HTTPS=1
# - STATIC_CDN_HOST=http://cdn.oj.com
ports:
- "0.0.0.0:80:8000"
- "0.0.0.0:443:1443"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化