Run testcontainers with sweet. All containers start up as soon as they’re ready to be tested and clean up after themselves.
Roll your own container or use the pre-set up ones.
It's open source: barry-hennessy/test on GitHub.