Video coming soon…
👨💻 Setup Judge0 — Code Execution Sandbox API
Deploy Judge0 on Ubuntu with Docker — an open-source API that compiles and runs untrusted code in 60+ languages inside a sandbox, with PostgreSQL and Redis behind it.
⚠️ This script is provided for demo and testing purposes only. Not intended for production use.
📦 Resources & Setup Scripts
Grab the automated bash script from GitHub to follow along with the video.
Quick Install:
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/judge0/judge0-ubuntu.sh
chmod +x judge0-ubuntu.sh
sudo bash judge0-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/dev/judge0/judge0-ubuntu.sh
2 Make it Executable
chmod +x judge0-ubuntu.sh
3 Run the Installer
The script installs Docker if needed, starts PostgreSQL 16 and Redis 7, then launches the Judge0 API and its workers on port 2358. Both run in privileged mode because the isolate sandbox requires it.
sudo bash judge0-ubuntu.sh
4 Submit Code to the API
Judge0 has no web UI — it is an API. Check that it is up and list the available languages:
curl http://<your-server-ip>:2358/languages
Ports Used
| Port | Purpose |
|---|---|
| 2358 | REST API (no web UI) — never expose publicly |
| internal | PostgreSQL 16 + Redis 7 + judge0-workers |
| privileged | API and workers run privileged — isolate sandbox requires it |