i had the problem with docker compose, that the Postgres DB wasnt ready early enough sometimes and the synapse docker failed boot due to the not reachable DB.
The usual way of creating a simple healtcheck with a curl-command wasnt working, because curl isn't installed in the docker-matrix image.
I wrote a one liner in python to do the healtcheck:
i had the problem with docker compose, that the Postgres DB wasnt ready early enough sometimes and the synapse docker failed boot due to the not reachable DB. The usual way of creating a simple healtcheck with a curl-command wasnt working, because curl isn't installed in the docker-matrix image.
I wrote a one liner in python to do the healtcheck:
With that we can persuade the matrix-docker container to retry to connect to the db and the database has some more time to bootup
This is a simplified extract from my docker-compose file as an example
This is just a documentation issue, if somebody runs in the same problem