Include the environment variable DMOJ_JUDGE_KEY_PATH to define the path of a file with the judge key.
Compose file as example:
services:
judge:
image: dmoj/judge-tier3:latest
command: ["run", "$BRIDGE_ADDRESS"]
environment:
DMOJ_JUDGE_NAME: "$JUDGE_NAME"
DMOJ_JUDGE_KEY_PATH: /run/secrets/judge_key
secrets:
- judge_key
volumes:
- "$PROBLEMS_DIR:/problems:ro"
cap_add:
- SYS_PTRACE
restart: unless-stopped
secrets:
judge_key:
file: 'judge_key.txt'