From d8937ade4132c6d3c0ffcbe89532e35faf446673 Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sat, 8 Jul 2023 11:24:24 +0200 Subject: [PATCH] change mastodon cache location to prevent disk full --- ansible/roles/mastodon/docker-stack.yml.j2 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ansible/roles/mastodon/docker-stack.yml.j2 b/ansible/roles/mastodon/docker-stack.yml.j2 index b7ecf41..baeaff8 100644 --- a/ansible/roles/mastodon/docker-stack.yml.j2 +++ b/ansible/roles/mastodon/docker-stack.yml.j2 @@ -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"]