What is the Overleaf Toolkit?
The Overleaf Toolkit is the recommended deployment method for on-premises installations of the Community Edition, Server Pro or CEP, it has been designed to work with the most common environment: a single physical server or virtual machine. The Toolkit uses docker compose to manage your server's Docker containers and provides a set of scripts which wrap docker commands to assist with the more technical side of managing an on-premises version of Overleaf.
The bin/docker-compose wrapper
bin/docker-compose wrapperThe bin/docker-compose script is a wrapper around docker compose. It loads configuration from the config/ directory, before invoking docker compose with whatever arguments were passed to the script.
You can treat bin/docker-compose as a transparent wrapper for the docker compose program installed on your machine.
Example:
$ bin/docker-compose psConvenience helpers
In addition to bin/docker-compose, the Toolkit provides convenient scripts to assist with common tasks:
bin/up: shortcut forbin/docker-compose upbin/start: shortcut forbin/docker-compose startbin/stop: shortcut forbin/docker-compose stopbin/shell: starts a shell inside the sharelatex containerbin/doctor: script used to gather installation and deployment information. See the "Checking your server" section belowbin/mongo: starts a shell inside the mongo container and switches to the correct database (sharelatex)bin/backup-config: create a copy (zip or tar) of your current configuration and store it in a destination directory of your choicebin/logs: view/tail service logsbin/error-logs: view/tail service error logsbin/rename-env-vars-5-0: migration script to update environment variables in config/variables.env (re-branding from ShareLaTeX to Overleaf)bin/rename-rc-vars: migration script to update environment variables in config/overleaf.rc (re-branding from ShareLaTeX to Overleaf)bin/run-script: helper to simplify running scripts stored within the sharelatex containerbin/upgrade: assists with instance upgrades. The script will check for Toolkit updates (via git) and offer to pull changes, check for the latest Docker image version and offer to update it. It provides step-by-step confirmation, the option to back up current configuration, and handles stopping/starting Docker services. See Upgrading your deployment for more information: https://docs.overleaf.com/on-premises/maintenance/upgrading-your-deployment
Checking your server
The Overleaf Toolkit includes a handy script called bin/doctor that produces a report pointing to any unfulfilled dependency.
Before continuing, run the bin/doctor script and check that everything is working correctly:
Example output (truncated/illustrative):
If any dependencies are missing, the doctor will print warnings. If you run into problems, first run bin/doctor and check its output for warnings.
Last updated
Was this helpful?