源码地址为:https://github.com/QingdaoU/OnlineJudge
可参考的文档为:https://github.com/QingdaoU/OnlineJudgeDeploy/tree/2.0
一、安装所依赖的环境
sudo apt-get update && sudo apt-get install -y vim python-pip curl git
sudo apt-get install docker-compose
二、使用Git克隆项目并完成部署
git clone -b 2.0 https://github.com/QingdaoU/OnlineJudgeDeploy.git && cd OnlineJudgeDeploy
docker-compose up -d(root用户使用该命令)或sudo -E docker-compose up -d(非root用户使用该命令)
用户名和密码分别是:root和rootroot
浏览器默认打开为:http://IP地址/
例如http://192.168.126.128,显示界面如下:
三、常见问题
常见问题一
错误信息:ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Eithe