This is a docker-compose setup for running a DMOJ instance.
The backend judge is based on dmoj/runtimes-tier1.
- Copy example
.envfile
cp .env.example .env
-
Fill in the necessary fields in each file.
JUDGE_KEYandDB_PASSWORDin.envmust 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.ymlshould be created.The example is in
problems/judge-example.yml(Fill inJUDGE_KEYwith the same string as in.env). -
To stop the containers, run
docker compose stop