Open foxes1998 opened 5 years ago
version: "3" services:
oj-redis: image: redis:4.0-alpine container_name: oj-redis restart: always volumes:
$PWD/data/redis:/data
oj-postgres: image: postgres:10-alpine container_name: oj-postgres restart: always volumes:
POSTGRES_PASSWORD=onlinejudge
judge-server:
image: qduoj/judge-server container_name: judge-server restart: always read_only: true cap_drop:
TOKEN=CHANGE_THIS
oj-backend:
image: qduoj/oj-backend
restart: always depends_on:
ports:
version: "3" services:
oj-redis: image: redis:4.0-alpine container_name: oj-redis restart: always volumes:
$PWD/data/redis:/data
oj-postgres: image: postgres:10-alpine container_name: oj-postgres restart: always volumes:
POSTGRES_PASSWORD=onlinejudge
judge-server:
image: registry.cn-hangzhou.aliyuncs.com/onlinejudge/judge_server
image: qduoj/judge-server container_name: judge-server restart: always read_only: true cap_drop:
TOKEN=CHANGE_THIS
- judger_debug=1
oj-backend:
image: registry.cn-hangzhou.aliyuncs.com/onlinejudge/oj_backend
image: qduoj/oj-backend
container_name: oj-backend
restart: always depends_on:
- FORCE_HTTPS=1
- STATIC_CDN_HOST=cdn.oj.com
ports: