change mastodon cache location to prevent disk full

This commit is contained in:
Pim Kunis 2023-07-08 11:24:24 +02:00
parent b6325b5fef
commit d8937ade41

View file

@ -17,7 +17,9 @@ services:
db:
image: postgres:14-alpine
networks:
- mastodon
mastodon:
aliases:
- db
healthcheck:
test: ['CMD', 'pg_isready', '-U', 'postgres']
volumes:
@ -36,7 +38,9 @@ services:
redis:
image: redis:7-alpine
networks:
- mastodon
mastodon:
aliases:
- redis
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
volumes:
@ -83,7 +87,7 @@ services:
volume:
nocopy: true
- type: bind
source: /media/mastodon_cache
source: /mnt/data/mastodon/cache
target: /mastodon/public/system/cache
deploy:
placement:
@ -154,7 +158,7 @@ services:
volume:
nocopy: true
- type: bind
source: /media/mastodon_cache
source: /mnt/data/mastodon/cache
target: /mastodon/public/system/cache
healthcheck:
test: ['CMD-SHELL', "ps aux | grep '[s]idekiq\ 6' || false"]