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