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:
parent
93432de2e6
commit
78d4685404
|
@ -18,6 +18,12 @@ services:
|
||||||
- ${listen_if}:${listen_port}:8008
|
- ${listen_if}:${listen_port}:8008
|
||||||
volumes:
|
volumes:
|
||||||
- matrixdotorg_synapse-data:/data:Z
|
- 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:
|
depends_on:
|
||||||
synapse-db:
|
synapse-db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
Loading…
Reference in a new issue