Build a Docker Compose Local Development Stack
Why it works · It defines the runtime, behaviour and edge cases, then asks for tests — turning the AI from a code generator into a reliable engineering pair.
Best use case
Best for devops workflows where generate a full docker compose configuration for a local development environment, integrating your application, postgresql, redis, and mailhog. it includes named volumes for data persistence, a `wait-for-db` entrypoint for service reliability, and provides essential guidance on image size and security for a robust setup.
Expected output
Working code in the runtime you specified, with edge cases handled and a small test you can run immediately.
Generate a full Docker Compose configuration for a local development environment, integrating your application, PostgreSQL, Redis, and MailHog. It includes named volumes for data persistence, a `wait-for-db` entrypoint for service reliability, and provides essential guidance on image size and security for a robust setup.

