This is a docker-compose setup for running a DMOJ instance.
The backend judge is based on dmoj/runtimes-tier1
.
- Copy example
.env
file
cp .env.example .env
-
Fill in the necessary fields in each file.
JUDGE_KEY
andDB_PASSWORD
in.env
must be filled in. All other settings could be left as is, and it should work. -
Run docker compose. Wait a moment until the initial migration is complete.
docker compose up
-
The site should now be available at
http://localhost:8000/
. -
To add problems, write problem statements and configure settings via the admin interface. Then add testcases/custom checkers under the
problems/
directory. Under the directory,judge.yml
should be created.The example is in
problems/judge-example.yml
(Fill inJUDGE_KEY
with the same string as in.env
). -
To stop the containers, run
docker compose stop