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

92 lines
1.9 KiB
Markdown
Raw Permalink Normal View History

2020-06-02 14:20:23 +01:00
# Overleaf Toolkit
2020-06-05 11:00:42 +01:00
## Getting Started
2020-06-17 11:40:06 +01:00
See the [Quick Start Guide](./doc/quick-start-guide.md).
2020-06-05 11:00:42 +01:00
## Doctor
Run `bin/doctor` for debug output
2020-06-16 13:27:24 +01:00
## Docker Compose Wrappers
The `bin/docker-compose` script is a wrapper around `docker-compose`,
and automatically loads the project configuration. `bin/up`, `bin/start`, etc,
are convenience wrappers around `bin/docker-compose`.
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