You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.0 KiB
YAML
48 lines
1.0 KiB
YAML
version: '3.7'
|
|
|
|
services:
|
|
oj-minio:
|
|
image: minio/minio
|
|
container_name: oj-minio
|
|
command: server /data
|
|
restart: always
|
|
volumes:
|
|
- ./data/minio:/data
|
|
environment:
|
|
- MINIO_ACCESS_KEY=CHANGE_THIS
|
|
- MINIO_SECRET_KEY=CHANGE_THIS
|
|
|
|
# Warning: mongodb here is not password-protected.
|
|
# DO NOT EXPOSE THIS SERVICE TO THE PUBLIC.
|
|
oj-mongo:
|
|
image: mongo
|
|
container_name: oj-mongo
|
|
restart: always
|
|
volumes:
|
|
- ./data/mongo:/data/db
|
|
|
|
oj-backend:
|
|
build: ./backend
|
|
container_name: oj-backend
|
|
restart: always
|
|
depends_on:
|
|
- oj-minio
|
|
- oj-mongo
|
|
volumes:
|
|
- ./data/backend:/root/.hydro
|
|
environment:
|
|
- MINIO_ACCESS_KEY=CHANGE_THIS
|
|
- MINIO_SECRET_KEY=CHANGE_THIS
|
|
ports:
|
|
- "0.0.0.0:80:8888" # In docker mode, change THIS port instead of port in system settings!
|
|
|
|
oj-judge:
|
|
build: ./judge
|
|
container_name: oj-judge
|
|
restart: always
|
|
privileged: true
|
|
depends_on:
|
|
- oj-backend
|
|
volumes:
|
|
- ./data/judge:/root/.config/hydro
|