generate_stack
Transform natural language descriptions into production-ready Docker Compose stacks, including security best practices and optional Traefik reverse proxy configuration.
Instructions
Generate a production-ready Docker Compose stack from a natural language description or stack type. Includes security best practices: resource limits, healthchecks, restart policies, non-root users, named volumes. Optionally adds Traefik v3 labels for reverse proxy + HTTPS.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | Public domain for Traefik routing, e.g. "myapp.example.com". If provided, Traefik labels are added. | |
| db_name | No | Database name to use (defaults to app_name) | |
| app_name | No | Name for the main application service (used as container name prefix) | |
| stack_type | No | Explicit stack type. Use "auto" to detect from description. | auto |
| description | No | Natural language description of what you want to build, e.g. "Node.js API with PostgreSQL and Redis cache" | |
| node_version | No | Node.js version to use in image tags (default: "20") | 20 |
| python_version | No | Python version to use in image tags (default: "3.12") | 3.12 |
| traefik_network | No | External Docker network for Traefik (default: "proxy") | proxy |