Get toolkit
cd ~ git clone https://github.com/overleaf/toolkit.git cd toolkit bin/init
Change listening IP and port
sudo vim config/overleaf.rc
- change
YourPORTChoice
inOVERLEAF_PORT=YourPORTChoice
- change
OVERLEAF_LISTEN_IP
to0.0.0.0
Build docker images for ARM
This is the key part. One needs to build the arm version of the docker images using the command below.
cd ~
git clone https://github.com/overleaf/overleaf.git cd overleaf/server-ce make ARCH=arm build-base make ARCH=arm build-community
Change image names
The image needs to be renamed, correponding to the version mentioned in the version file below.
docker image tag sharelatex/sharelatex:main sharelatex/sharelatex: x.x.x
Note:
-x.x.x
comes from ~/toolkit/config/version
Start service
bin/up -d
Verify the service is accessible
- Access the below link in your browser:
YourServerIP:YourPORTChoice
Creating a new user
bin/docker-compose exec sharelatex /bin/bash -ce "cd /overleaf/services/web && node modules/server-ce-scripts/scripts/add-user --email=your_email_address"