Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: moving the data directory #317

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions doc/persistent-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 and move the data directory (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.