change mastodon cache location to prevent disk full
This commit is contained in:
parent
b6325b5fef
commit
d8937ade41
1 changed files with 8 additions and 4 deletions
|
@ -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"]
|
||||
|
|
Reference in a new issue