compose_add_service
Add a new service definition to an existing Docker Compose file by specifying image, ports, dependencies, and API key. Configure services without manually editing YAML.
Instructions
Add a new service definition to an existing Docker Compose file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Docker image for the service | |
| ports | No | Port mappings (e.g. ['8080:80']) | |
| api_key | No | API key for authentication | |
| depends_on | No | Service dependencies | |
| service_name | Yes | Name of the service to add |