1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-25 02:08:06 +02:00
overleaf-toolkit/README.md

107 lines
2.6 KiB
Markdown
Raw Normal View History

2020-06-02 14:20:23 +01:00
# Overleaf Toolkit
2020-06-05 11:00:42 +01:00
2020-07-15 09:26:56 +01:00
(Note: this software is currently in beta testing. Functionality and documentation
may be incomplete)
2020-07-21 16:26:01 +01:00
This repository contains the Overleaf Toolkit, the standard tools for running a local
instance of [Overleaf](https://overleaf.com). This toolkit will help you to set up and administer both Overleaf Community Edition (free to use, and community supported), and Overleaf Server Pro (commercial, with professional support).
2020-07-15 09:26:56 +01:00
2020-06-05 11:00:42 +01:00
2020-07-21 16:26:01 +01:00
## Getting Started
2020-06-05 11:00:42 +01:00
2020-07-21 16:26:01 +01:00
Clone this repository locally:
2020-06-05 11:00:42 +01:00
2020-07-21 16:26:01 +01:00
``` sh
git clone https://github.com/overleaf/toolkit.git overleaf-toolkit
```
2020-07-16 14:00:19 +01:00
2020-07-21 16:26:01 +01:00
Then follow the [Quick Start Guide](./doc/quick-start-guide.md).
2020-07-16 14:00:19 +01:00
2020-07-21 16:26:01 +01:00
## Documentation
2020-07-16 14:00:19 +01:00
2020-07-22 11:47:32 +01:00
See [Documentation Index](./doc/_index.md)
2020-07-16 14:00:19 +01:00
2020-06-05 11:00:42 +01:00
2020-07-21 16:26:01 +01:00
## Getting Help
2020-06-05 11:00:42 +01:00
2020-07-21 16:26:01 +01:00
Users of the free Community Edition should [open an issue on github](https://github.com/overleaf/toolkit/issues).
2020-06-05 11:00:42 +01:00
2020-07-21 16:26:01 +01:00
Users of Server Pro should contact `support@overleaf.com` for assistance.
2020-06-16 13:27:24 +01:00
2020-07-22 10:47:19 +01:00
In both cases, it is a good idea to include the output of the `bin/doctor` script in your message, so the Overleaf team can help debug the problem.
2020-06-16 13:27:24 +01:00
2020-06-05 11:00:42 +01:00
## Config files
2020-06-12 11:42:39 +01:00
- `config/overleaf.rc`
- `config/variables.env`
2020-07-09 13:58:44 +01:00
- `config/version`
2020-06-10 10:18:58 +01:00
2020-06-16 14:32:57 +01:00
If `config/docker-compose.override.yml` is present, it will also be loaded.
2020-06-10 10:18:58 +01:00
## Docker Compose files
- `lib/docker-compose.base.yml`
- `lib/docker-compose.mongo.yml`
- `lib/docker-compose.redis.yml`
- `lib/docker-compose.sibling-containers.yml`
2020-06-16 13:27:24 +01:00
### overleaf.rc
2020-06-12 11:42:39 +01:00
The `config/overleaf.rc` file controls top-level configuration,
such as the docker image to use, data paths, etc. This is used
to configure the invocaton to docker-compose.
2020-06-16 13:27:24 +01:00
### variables.env
2020-06-12 11:42:39 +01:00
Environment variables loaded in the overleaf container as application
settings.
## Data directories (default)
2020-06-10 10:18:58 +01:00
- `data/mongo`
- `data/redis`
- `data/sharelatex`
All are persisted outside of the containers.
2020-06-12 11:42:39 +01:00
These can be changed by setting `MONGO_DATA_PATH` (etc) in `overleaf.rc`
2020-06-16 13:27:24 +01:00
2020-06-16 13:27:53 +01:00
## How To
2020-06-16 13:27:24 +01:00
2020-07-01 10:05:35 +01:00
### Update to the latest version
- Run `bin/upgrade`, and follow the instructions
- This will fetch any available code updates and offer to upgrade the
locally configured docker image version, if a new version is available
2020-07-01 10:05:35 +01:00
2020-06-30 15:54:07 +01:00
### Switch to Server Pro
- In `overleaf.rc`, set `SERVER_PRO=true`
2020-06-16 13:27:24 +01:00
### Change Image
2020-07-09 16:12:30 +01:00
- Change the contents of `config/version`
2020-06-16 13:27:24 +01:00
### Using an external mongo/redis
2020-07-09 16:12:30 +01:00
- Mongo
- Set `MONGO_ENABLED=false`, and `MONGO_URL=...` in `overleaf.rc`
- Redis
- Set `REDIS_ENABLED=false`, and `REDIS_HOST=...` and/or `REDIS_PORT=...` in `overleaf.rc`
2020-06-16 13:27:24 +01:00
### Using Sibling-Containers
- In `overleaf.rc` set `SIBLING_CONTAINERS_ENABLED=true`
- In `overleaf.rc`, ensure `DOCKER_SOCKET_PATH` is set