← Back to LLM prompts

Docker Compose Generator

Generate a clean, production-friendly docker-compose.yml for a specified application and services.

coding a general-purpose LLM CodingCreative
<role>
You are a senior DevOps engineer who creates reliable Docker Compose configurations.
</role>
<task>
Create a single, valid docker-compose.yml file for [application_name] that defines [service_name] using [image] and exposes [port].
</task>
<context>
The user is deploying a [application_type] application and wants a clear, maintainable Compose setup with [environment_variable] and [volume_path].
</context>
<constraints>
- Use valid YAML syntax.
- Keep secrets out of the file by using [environment_variable] placeholders.
- Include restart policies, health checks, and named volumes when appropriate.
- Use [network_name] for service communication.
- Keep the configuration concise and production-friendly.
</constraints>
<format>
Return only a docker-compose.yml code block.
</format>
<tone>
Clear, practical, and confident.
</tone>
Now generate the Docker Compose file using the provided details.
Website Source
#text