加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
SmithCruise 提交于 2018-03-24 14:44 . update
version: '3'
services:
db:
image: d87904488/eagle-oj-db
container_name: eagle-oj-db
environment:
MYSQL_ROOT_PASSWORD: 123456 # The database password
restart: always
volumes:
- $PWD/data/mysql:/var/lib/mysql
ports:
- "3306:3306"
judger:
image: d87904488/eagle-oj-judger
container_name: eagle-oj-judger
restart: always
ports:
- "5000:5000"
api:
image: d87904488/eagle-oj-api
container_name: eagle-oj-api
environment:
VIRTUAL_HOST: localhost # The domain you want to bind
MYSQL_URL: db:3306 # The mysql connection url
MYSQL_DATABASE: eagle_oj # Mysql database
MYSQL_USERNAME: root # Mysql username
MYSQL_PASSWORD: 123456 # Mysql password
restart: always
volumes:
- $PWD/data/api:/eagle-oj/data
# ports:
# - "8080:8080" # If you want to open 8080 port
nginx:
image: jwilder/nginx-proxy:alpine
container_name: nginx
depends_on:
- judger
- db
- api
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
# - $PWD/ssl:/etc/nginx/certs # If you want to enable SSL
ports:
- "80:80"
# - "443:443" If you want to enable SSL
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化