move overleaf data to nfs

This commit is contained in:
Pim Kunis 2023-07-09 23:46:38 +02:00
parent 06fb6a5286
commit 679a877a39
2 changed files with 13 additions and 2 deletions

View file

@ -26,6 +26,8 @@ nfs_shares:
path: /mnt/data/mastodon/system
- name: forgejo
path: /mnt/data/forgejo
- name: overleaf
path: /mnt/data/overleaf
database_passwords:
nextcloud: !vault |

View file

@ -5,6 +5,13 @@ networks:
external: true
overleaf:
volumes:
data:
driver_opts:
type: "nfs"
o: "addr=192.168.30.10,nolock,soft,rw"
device: ":/mnt/data/overleaf"
services:
sharelatex:
image: sharelatex/sharelatex:3
@ -16,9 +23,11 @@ services:
- overleaf-redis
stop_grace_period: 60s
volumes:
- type: bind
source: /mnt/data/overleaf/sharelatex_data
- type: volume
source: data
target: /var/lib/sharelatex
volume:
nocopy: true
deploy:
placement:
constraints: