mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 07:18:06 +02:00
docs: moving the data directory
When moving the data directory of an existing deployment, one needs to be careful to remove the existing containers (`bin/stop` is not enough). A use case for moving the data directory of an existing deployment is, for example, to move it to a more frequently backed-up location when the user base of the service grows.
This commit is contained in:
parent
7f10105a9b
commit
6aa0e04ded
1 changed files with 11 additions and 0 deletions
|
@ -46,3 +46,14 @@ services:
|
|||
volumes:
|
||||
- redis-data:/data
|
||||
```
|
||||
|
||||
## Moving the data directory
|
||||
|
||||
If you want to move the data directory of an existing deployment to a different location, run the following commands from the `overleaf-tookit` repository:
|
||||
|
||||
1. `bin/stop` to stop the overleaf service
|
||||
2. `bin/docker-compose rm mongo sharelatex redis` to remove the containers
|
||||
3. adjust the paths in the `config/overleaf.rc` configuration file (or leave the relative paths and just move the entire `overleaf-toolkit` directory)
|
||||
4. `bin/init` and `bin/start` to start the overleaf service again
|
||||
|
||||
Note: Step 2 is required, since the old mount path of the data directory is stored in the stopped containers and will not update when they are restarted.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue