Skip to content

update docker-compose.yml#26

Open
foxes1998 wants to merge 1 commit into
2.0from
master
Open

update docker-compose.yml#26
foxes1998 wants to merge 1 commit into
2.0from
master

Conversation

@foxes1998

@foxes1998 foxes1998 commented Mar 19, 2019

Copy link
Copy Markdown

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