代码拉取完成,页面将自动刷新
version: '2'
services:
nginx:
image: judge0/jwilder-nginx-proxy:latest-2020-02-11
environment:
- DEFAULT_HOST=api.judge0.local
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
ports:
- "8080:80"
restart: always
api:
image: judge0/api:latest-dev
environment:
- VIRTUAL_HOST=api.judge0.local
- VIRTUAL_PORT=3000
volumes:
- .:/api
ports:
- "3000:3000"
- "3030:3030"
privileged: true
db:
image: postgres:9.6
env_file: judge0-api.conf
volumes:
- postgres-data:/var/lib/postgresql/data/
ports:
- "5432:5432"
restart: always
redis:
image: redis:4.0
command: [
"bash", "-c",
'docker-entrypoint.sh --appendonly yes --requirepass "$$REDIS_PASSWORD"'
]
env_file: judge0-api.conf
volumes:
- redis-data:/data
ports:
- "6379:6379"
restart: always
volumes:
postgres-data:
redis-data:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。