synapse : ajout healthcheck.

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
- 8fe1fd906a/docker/Dockerfile (L192)
- https://hub.docker.com/r/matrixdotorg/synapse
This commit is contained in:
Gitouche 2023-08-01 22:46:58 +02:00
parent 93432de2e6
commit 78d4685404
1 changed files with 6 additions and 0 deletions

View File

@ -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