move overleaf mongodb data to nfs
This commit is contained in:
parent
a1fa146e9d
commit
6c191769bd
2 changed files with 11 additions and 2 deletions
|
@ -32,6 +32,8 @@ nfs_shares:
|
|||
path: /mnt/data/overleaf/data
|
||||
- name: overleaf_redis
|
||||
path: /mnt/data/overleaf/redis
|
||||
- name: overleaf_mongodb
|
||||
path: /mnt/data/overleaf/mongodb
|
||||
|
||||
database_passwords:
|
||||
nextcloud: !vault |
|
||||
|
|
|
@ -16,6 +16,11 @@ volumes:
|
|||
type: "nfs"
|
||||
o: "addr=192.168.30.10,nolock,soft,rw"
|
||||
device: ":/mnt/data/overleaf/redis"
|
||||
mongodb:
|
||||
driver_opts:
|
||||
type: "nfs"
|
||||
o: "addr=192.168.30.10,nolock,soft,rw"
|
||||
device: ":/mnt/data/overleaf/mongodb"
|
||||
|
||||
services:
|
||||
sharelatex:
|
||||
|
@ -85,9 +90,11 @@ services:
|
|||
expose:
|
||||
- 27017
|
||||
volumes:
|
||||
- type: bind
|
||||
source: /mnt/data/overleaf/mongo_data
|
||||
- type: volume
|
||||
source: mongodb
|
||||
target: /data/db
|
||||
volume:
|
||||
nocopy: true
|
||||
healthcheck:
|
||||
test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet
|
||||
interval: 10s
|
||||
|
|
Reference in a new issue