After writing up Compose healthchecks for Postgres, I kept rewriting the same block for other databases, so I made a small single-page generator. You pick the service, optionally a password variable and your app's service name, and it outputs the healthcheck: plus depends_on: condition: service_healthy, with $$ escaping so Compose doesn't eat your variables. It also adds the password env lines that Postgres and MySQL need to start.
Free here (enter $0; Gumroad asks for an email): https://8686702537545.gumroad.com/l/cumhuh
The snippets are starting points, so check them against your own setup. Feedback on missing services is welcome.
Disclosure: I make ShipKit, which sells this pack. The generator itself is free, and its page links to ShipKit's paid Docker and GitHub Actions packs.
