Creating own Overleaf Instance
I will use the Overleaf Toolkit to create a local instance of Overleaf.
Docker Environment
In preparation for the Overleaf instance, you must have Docker and Docker Compose running on your server.
Download
Bash | |
---|---|
Bash | |
---|---|
Configuration
Init
Bash | |
---|---|
Docker Configuration
Bash | |
---|---|
SHARELATEX_LISTEN_IP
to 0.0.0.0
to make the instance accessible from the outside.
I also changed the port because I already have a service running on port 80.
Save the file and exit the editor.
Environment Variables
Bash | |
---|---|
I changed the following variables:
Bash | |
---|---|
SMTP Server (OPTIONAL)
I also changed the following variables to use my own SMTP server:
Start
First Start
For the first start use:
Bash | |
---|---|
Now Docker Composer will download all necessary images and start the Overleaf instance. Wait some time than try opening your Overleaf instance in your browser with the following URL:
Bash | |
---|---|
There you can create your first user and login.
On the page after the login there is the status of the Overleaf instance. This should show OK
for all services.
There you can also send a test email if you set up your SMTP server.
Now you can stop the Overleaf instance with CTRL+C
.
Start
For starting the Overleaf instance use:
Bash | |
---|---|
To stop it again use:
Bash | |
---|---|
Getting Full Functionality
Overleaf is shipped with only the basic functionality. To get the full functionality you have to download the remaining packages.
Enter container shell:
Bash | |
---|---|
Download full package set (1) :
- For this the container must be running. Also this takes some time.
Bash | |
---|---|
Exit container shell:
Bash | |
---|---|
Congratulations! You now have your own Overleaf instance running.
EVEN MORE PACKAGES
Enter container shell (if not already done):
Bash | |
---|---|
If you want even more packages, you can use the following command:
Bash | |
---|---|
I
to install all packages.
Fix "Our Overleaf Instance is currently down for maintenance."
If your Overleaf instance is showing the following message:
Enter container shell:
Bash | |
---|---|
edit the following file: /etc/sharelatex/site_status
and replace closed
with open
.