Create a stack
Creates a Docker Compose stack from a Git repository. The compose source is analyzed server-side, required environment variables are resolved from the supplied custom values and/or auto-populated, capacity is validated against the target resource, and the initial build is published. Call POST /stacks/analyze first to discover which required env vars need values.
Authorizations
Bearer token for authentication. Format: 'Bearer {token}'
Headers
Workspace ID (uses default workspace if not provided)
Body
Create a stack
Git repository URL (GitHub or public HTTPS Git)
Git branch to deploy
UUID of the target compute resource (Miget)
Path to the docker-compose file within the repository (defaults to '.')
UUID of a stored Git credential (for private repositories)
Human-readable display name for the stack
Stack codename seed (must start with a letter; derived from the repository if omitted)
UUID of an existing project to create the stack in
Name of a new project to create for the stack
Description for the new project
Custom required env var values, shaped as { service_name: { KEY: value } }
Random-fill any required env var left without a custom value (default false)
Response
Create a stack
Api_V1_Entities_Stack model
Unique stack identifier
Stack codename (unique per workspace)
Human-readable display name
Computed state (pending, validating, publishing, building, deploying, running, degraded, failed, stopped)
Associated project UUID
Path to the docker-compose file within the repository
Git deployment configuration (type, repository, branch, auto_deploy_enabled)
Total CPU allocated across stack services (cores)
Total RAM allocated across stack services (MiB)
Total disk allocated across stack services (MiB)
Creation timestamp
Last update timestamp
Api_V1_Entities_Resource model
Services materialized from the compose manifest
Api_V1_Entities_StackDeployment model

