From 0ec9e33484ca102d5be9db5cd5a208bd15979ffc Mon Sep 17 00:00:00 2001 From: olli <> Date: Tue, 20 Aug 2024 15:12:13 +0200 Subject: [PATCH] healthcheck --- matrix.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/matrix.yml b/matrix.yml index 423aca4..a16def2 100644 --- a/matrix.yml +++ b/matrix.yml @@ -373,6 +373,11 @@ image: docker.io/matrixdotorg/synapse:latest restart: unless-stopped user: 3000:3000 + healthcheck: + timeout: 30s + retries: 3 + start_period: 300s + interval: 15s volumes: - ./data:/data - /etc/localtime:/etc/localtime:ro @@ -558,6 +563,9 @@ - ${pipe}:/${pipebasename} entrypoint: /bin/bash -c 'cd /data && tail -F \"/${pipebasename}\" | /app/matrix_commander/matrix-commander -m _ --html --room \"$room\" --log-level INFO INFO' restart: unless-stopped + depends_on: + matrix.defiant.dedyn.io--synapse: + condition: service_healthy " >> docker-compose.override.yml.new done