portainer_stack_deploy
Deploy a Docker stack from a compose string. Specify name, YAML content, and optional environment variables to launch services on a target endpoint.
Instructions
Deploy a new stack from a docker-compose string.
Args: name: Name of the new stack compose_content: Docker Compose file content (YAML string) env: Stack environment variables (substituted into the compose file by Portainer), e.g. {"DB_PASSWORD": "..."} endpoint_id: Target endpoint ID (uses default if omitted)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | ||
| name | Yes | ||
| endpoint_id | No | ||
| compose_content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |