Add depends_on conditions to Mastodon

This commit is contained in:
Sam A. 2022-11-26 17:18:31 +01:00
parent 7962a75481
commit bb920407f3
Signed by untrusted user: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -63,8 +63,10 @@
# prettier-ignore
test: ['CMD-SHELL', 'wget -q --spider --proxy=off localhost:3000/health || exit 1']
depends_on:
- db
- redis
db:
condition: "service_healthy"
redis:
condition: "service_healthy"
volumes:
- "{{ services.mastodon.volume_folder }}/mastodon_data:/mastodon/public/system"
environment:
@ -88,8 +90,10 @@
ports:
- '127.0.0.1:4000:4000'
depends_on:
- db
- redis
db:
condition: "service_healthy"
redis:
condition: "service_healthy"
environment:
VIRTUAL_HOST: "{{ services.mastodon.domain }}"
VIRTUAL_PORT: "4000"
@ -103,8 +107,10 @@
environment:
DB_POOL: 32
depends_on:
- db
- redis
db:
condition: "service_healthy"
redis:
condition: "service_healthy"
networks:
- postfix
- external_services
@ -120,4 +126,4 @@
postfix:
external: true
internal_network:
internal: true
internal: true