This project provides a complete Docker-based setup to run Overleaf (ShareLaTeX) locally with full LaTeX support (scheme-full), using MongoDB (replica set) and Redis.
This setup was originally created to run inside an Umbrel environment (via Portainer), but it works in any standard Docker environment.
The goal was to have:
- Full LaTeX support (no missing packages)
- Local, self-hosted Overleaf instance
- Simple and reproducible deployment
- Docker
- Docker Compose
git clone https://github.com/oroderico/overleaf-full.git
cd overleaf-fulldocker compose up -d --buildThis will:
- Build the custom Overleaf image (with full TeX Live)
- Start MongoDB (with replica set)
- Start Redis
- Start Overleaf
Open your browser:
http://umbrel.local:8085
- overleaf → Main application
- mongo → Database (replica set enabled)
- redis → Cache/session store
Persistent data is stored in:
mongo_dataoverleaf_data
The Overleaf image is built from:
FROM sharelatex/sharelatex:latest
RUN tlmgr option repository https://ftp.math.utah.edu/pub/tex/historic/systems/texlive/2025/tlnet-final && \
tlmgr update --self && \
tlmgr install scheme-full && \
tlmgr path addThis installs the full TeX Live distribution to avoid missing LaTeX packages.
- The image is large due to
scheme-full - First build may take several minutes
- MongoDB is configured with a single-node replica set (required by Overleaf)
This setup is intended for local or controlled environments.
Before exposing to the internet:
- Add authentication layer
- Use HTTPS (reverse proxy)
- Restrict access
- Full control over data
- Offline capability
- No external dependency
- Custom LaTeX environment
Personal project. Use at your own risk.