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"]