move overleaf mongodb data to nfs

This commit is contained in:
Pim Kunis 2023-07-14 14:45:47 +02:00
parent a1fa146e9d
commit 6c191769bd
2 changed files with 11 additions and 2 deletions

View file

@ -32,6 +32,8 @@ nfs_shares:
path: /mnt/data/overleaf/data path: /mnt/data/overleaf/data
- name: overleaf_redis - name: overleaf_redis
path: /mnt/data/overleaf/redis path: /mnt/data/overleaf/redis
- name: overleaf_mongodb
path: /mnt/data/overleaf/mongodb
database_passwords: database_passwords:
nextcloud: !vault | nextcloud: !vault |

View file

@ -16,6 +16,11 @@ volumes:
type: "nfs" type: "nfs"
o: "addr=192.168.30.10,nolock,soft,rw" o: "addr=192.168.30.10,nolock,soft,rw"
device: ":/mnt/data/overleaf/redis" 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: services:
sharelatex: sharelatex:
@ -85,9 +90,11 @@ services:
expose: expose:
- 27017 - 27017
volumes: volumes:
- type: bind - type: volume
source: /mnt/data/overleaf/mongo_data source: mongodb
target: /data/db target: /data/db
volume:
nocopy: true
healthcheck: healthcheck:
test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet test: echo 'db.stats().ok' | mongo localhost:27017/test --quiet
interval: 10s interval: 10s