move mongodb redis data to nfs

This commit is contained in:
Pim Kunis 2023-07-14 14:11:43 +02:00
parent 34f7d80c12
commit a1fa146e9d
2 changed files with 13 additions and 4 deletions

View file

@ -29,7 +29,9 @@ nfs_shares:
- name: forgejo - name: forgejo
path: /mnt/data/forgejo path: /mnt/data/forgejo
- name: overleaf - name: overleaf
path: /mnt/data/overleaf path: /mnt/data/overleaf/data
- name: overleaf_redis
path: /mnt/data/overleaf/redis
database_passwords: database_passwords:
nextcloud: !vault | nextcloud: !vault |

View file

@ -10,7 +10,12 @@ volumes:
driver_opts: driver_opts:
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" device: ":/mnt/data/overleaf/data"
redis:
driver_opts:
type: "nfs"
o: "addr=192.168.30.10,nolock,soft,rw"
device: ":/mnt/data/overleaf/redis"
services: services:
sharelatex: sharelatex:
@ -100,9 +105,11 @@ services:
expose: expose:
- 6379 - 6379
volumes: volumes:
- type: bind - type: volume
source: /mnt/data/overleaf/redis_data source: redis
target: /data target: /data
volume:
nocopy: true
deploy: deploy:
placement: placement:
constraints: constraints: