Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update docker-compose.yml #26

Open
wants to merge 1 commit into
base: 2.0
Choose a base branch
from
Open

update docker-compose.yml #26

wants to merge 1 commit into from

Conversation

foxes1998
Copy link

@foxes1998 foxes1998 commented Mar 19, 2019

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:
- $PWD/data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_DB=onlinejudge
- POSTGRES_USER=onlinejudge
- 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:
- SETPCAP
- MKNOD
- NET_BIND_SERVICE
- SYS_CHROOT
- SETFCAP
- FSETID
tmpfs:
- /tmp
volumes:
- $PWD/data/backend/test_case:/test_case:ro
- $PWD/data/judge_server/log:/log
- $PWD/data/judge_server/run:/judger
environment:
- SERVICE_URL=http://judge-server:8080
- BACKEND_URL=http://oj-backend:8000/api/judge_server_heartbeat/
- 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:
- oj-redis
- oj-postgres
- judge-server
volumes:
- $PWD/data/backend:/data
environment:
- POSTGRES_DB=onlinejudge
- POSTGRES_USER=onlinejudge
- POSTGRES_PASSWORD=onlinejudge
- JUDGE_SERVER_TOKEN=CHANGE_THIS
# - FORCE_HTTPS=1
# - STATIC_CDN_HOST=cdn.oj.com
ports:
- "0.0.0.0:80:8000"
- "0.0.0.0:443:1443"

@foxes1998 foxes1998 changed the title update redis docker image addr update docker-compose.yml Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants