Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Docker Compose v2, wait for healthchecks to pass
Switch to Docker Compose v2 and change `make services` to use the `--wait` flag to wait for healthchecks to pass before exiting. Also add a healthcheck for Elasticsearch. The Makefile changes follow the pattern in the lms app. Together these changes mean that h and its services can be started with `make services && make dev`, without encountering errors due to Postgres / Elasticsearch not being ready to connect. The `start_period` setting is set to a generous value (1 min) as normal startup times for ES are quite long (15-20s on my 2020 Intel MacBook Pro). See also hypothesis/lms#5556.
- Loading branch information