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
The 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:
Check running containers
Convenience helpers
In addition tobin/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
If you prefer to run your instance without attaching to the Docker logs you can run
bin/up -d to run in detached mode.Checking your server
The Overleaf Toolkit includes a handy script calledbin/doctor that produces a report pointing to any unfulfilled dependency.
Before continuing, run the bin/doctor script and check that everything is working correctly:
Run Overleaf Doctor
Sample output from bin/doctor
Sample output from bin/doctor
bin/doctor and check its output for warnings.
- Users of the Ayakaleaf Pro Edition can open an issue on GitHub: https://github.com/ayaka-notes/toolkit/issues
bin/doctor in your message.
