From 78d4685404e5a89c39be5a482262192511574b51 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Tue, 1 Aug 2023 22:46:58 +0200 Subject: [PATCH] synapse : ajout healthcheck. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Il est bien défini dans le Dockerfile fourni par Matrix/synapse mais perdu par l'export au format OCI (pas docker). Il est nécessaire de le redéfinir manuellement et le container-compose est un bon choix. Refs : - https://github.com/containers/podman/issues/12226 - https://github.com/containers/podman/issues/18904 - https://github.com/matrix-org/synapse/blob/8fe1fd906a0e8895ba2291f03a52db5a0062f06a/docker/Dockerfile#L192 - https://hub.docker.com/r/matrixdotorg/synapse --- podman-matrix/container-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/podman-matrix/container-compose.yml b/podman-matrix/container-compose.yml index 3856d8f..e6c7601 100644 --- a/podman-matrix/container-compose.yml +++ b/podman-matrix/container-compose.yml @@ -18,6 +18,12 @@ services: - ${listen_if}:${listen_port}:8008 volumes: - matrixdotorg_synapse-data:/data:Z + healthcheck: + test: ["CMD", "curl", "-fSs", "http://localhost:8008/health"] + interval: 15s + timeout: 5s + retries: 3 + start_period: 5s depends_on: synapse-db: condition: service_healthy