move mongodb redis data to nfs
This commit is contained in:
parent
34f7d80c12
commit
a1fa146e9d
2 changed files with 13 additions and 4 deletions
|
@ -29,7 +29,9 @@ nfs_shares:
|
|||
- name: forgejo
|
||||
path: /mnt/data/forgejo
|
||||
- name: overleaf
|
||||
path: /mnt/data/overleaf
|
||||
path: /mnt/data/overleaf/data
|
||||
- name: overleaf_redis
|
||||
path: /mnt/data/overleaf/redis
|
||||
|
||||
database_passwords:
|
||||
nextcloud: !vault |
|
||||
|
|
|
@ -10,7 +10,12 @@ volumes:
|
|||
driver_opts:
|
||||
type: "nfs"
|
||||
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:
|
||||
sharelatex:
|
||||
|
@ -100,9 +105,11 @@ services:
|
|||
expose:
|
||||
- 6379
|
||||
volumes:
|
||||
- type: bind
|
||||
source: /mnt/data/overleaf/redis_data
|
||||
- type: volume
|
||||
source: redis
|
||||
target: /data
|
||||
volume:
|
||||
nocopy: true
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
|
|
Reference in a new issue