mirror of
https://github.com/overleaf/toolkit.git
synced 2025-04-19 15:28:06 +02:00
Add a section about storing data in volumes
This commit is contained in:
parent
fc9c91445c
commit
07146571d8
1 changed files with 28 additions and 0 deletions
|
@ -18,3 +18,31 @@ Because docker runs as `root`, the data directories will end up being owned by t
|
|||
## Backups
|
||||
|
||||
Documentation for creating a backup on data can be found in the [Developer Wiki](https://github.com/overleaf/overleaf/wiki/Backup-of-Data).
|
||||
|
||||
|
||||
## Volumes
|
||||
|
||||
If you're running Overleaf on Windows or macOS, the `mongo` service may fail to restart, with an error:
|
||||
|
||||
```
|
||||
Failed to start up WiredTiger under any compatibility version.
|
||||
Reason: 1: Operation not permitted
|
||||
```
|
||||
|
||||
To avoid this error, the data needs to be stored in a volume rather than a bind mounted directory (see [the `mongo` image documentation for more details](https://github.com/docker-library/docs/blob/master/mongo/content.md#where-to-store-data)).
|
||||
To store data inside Docker volumes mounted inside the MongoDB and Redis containers, add the following to `config/docker-compose.override.yml` (create this file if it doesn't exist yet):
|
||||
|
||||
```yaml
|
||||
volumes:
|
||||
mongo-data:
|
||||
redis-data:
|
||||
|
||||
services:
|
||||
mongo:
|
||||
volumes:
|
||||
- mongo-data:/data/db
|
||||
|
||||
redis:
|
||||
volumes:
|
||||
- redis-data:/data
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue