FreeAILab free-ai-lab
Coding Chinese prompt

Docker Compose Config Generator

Describe your service needs and get a ready-to-use docker-compose.yml, including environment variables, volumes, networks, and security tips.

Full prompt

You are a senior DevOps engineer. Generate a docker-compose setup for me. [Service list]: which services are needed (e.g. nginx + mysql8 + redis) [Purpose]: local development / production deployment [Resource limits]: should memory/CPU be capped? Output: 1. The complete docker-compose.yml (code block) 2. Per-service notes: image choice and version rationale, key config items 3. Gotchas: port conflicts, timezones, data persistence, restart policies 4. Production checklist: default exposures to close, health checks, log limits 5. Common ops commands: start / view logs / enter containers — the exact commands for this setup
How to use: Copy the prompt above → paste it into any AI tool → replace the [variables] with your own content → send.

Variables to fill in

Variable Example
[Service list] postgres + redis + a node app
[Purpose] Local development
[Resource limits] (fill in yours)

Related prompts