Video coming soon…
🛠️ Setup Overleaf — Self-Hosted Collaborative LaTeX Editor
Deploy Overleaf (Community Edition) on Ubuntu with Docker, MongoDB, and Redis — a self-hosted collaborative LaTeX editor with live PDF compilation, on port 8214.
⚠️ 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/tools/overleaf/overleaf-ubuntu.sh
chmod +x overleaf-ubuntu.sh
sudo bash overleaf-ubuntu.sh
Tutorial Steps
1 Download the Script
wget https://raw.githubusercontent.com/mhmdali94/Docker/main/tools/overleaf/overleaf-ubuntu.sh
2 Make it Executable
chmod +x overleaf-ubuntu.sh
3 Run the Installer
The script installs Docker if needed and starts Overleaf with MongoDB (as a replica set) and Redis on port 8214. The first boot takes time as it initialises, and TeX Live packages are large.
sudo bash overleaf-ubuntu.sh
4 Create the First Admin
Once it's up, go to the launchpad page to create the first administrator account:
http://<your-server-ip>:8214/launchpad
Ports Used
| Port | Purpose |
|---|---|
| 8214 | Web UI (host → container 80) — create admin at /launchpad |
| internal | MongoDB (replica set rs0) + Redis (not published) |
| TeX Live | Bundled — first boot is slow |