代码拉取完成,页面将自动刷新
version: '2'
x-logging:
&default-logging
logging:
driver: json-file
options:
max-size: 100m
services:
api:
image: judge0/api:latest
volumes:
- ./judge0-api.conf:/judge0-api.conf:ro
ports:
- "80:3000"
privileged: true
<<: *default-logging
restart: always
worker:
image: judge0/api:latest
command: ["./scripts/workers"]
volumes:
- ./judge0-api.conf:/judge0-api.conf:ro
privileged: true
<<: *default-logging
restart: always
db:
image: postgres:9.6
env_file: judge0-api.conf
volumes:
- ./srv/postgres-data:/var/lib/postgresql/data/
<<: *default-logging
restart: always
redis:
image: redis:4.0
command: [
"bash", "-c",
'docker-entrypoint.sh --appendonly yes --requirepass "$$REDIS_PASSWORD"'
]
env_file: judge0-api.conf
volumes:
- ./srv/redis-data:/data
<<: *default-logging
restart: always
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。