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