move mastodon files to nfs

This commit is contained in:
Pim Kunis 2023-06-22 13:32:58 +02:00
parent c2386a17a2
commit 5bc4aef6db
2 changed files with 23 additions and 4 deletions

View file

@ -8,6 +8,11 @@ networks:
volumes:
cache:
system:
driver_opts:
type: "nfs"
o: "addr=192.168.30.10,nolock,soft,rw"
device: ":/mnt/data/mastodon/system"
services:
db:
@ -73,9 +78,11 @@ services:
- db
- redis
volumes:
- type: bind
source: /mnt/data/mastodon/public/system
- type: volume
source: system
target: /mastodon/public/system
volume:
nocopy: true
- cache:/mastodon/public/system/cache
deploy:
placement:
@ -134,9 +141,11 @@ services:
networks:
- mastodon
volumes:
- type: bind
source: /mnt/data/mastodon/public/system
- type: volume
source: system
target: /mastodon/public/system
volume:
nocopy: true
- cache:/mastodon/public/system/cache
healthcheck:
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]