Deploy services from a Docker Compose file to your cluster. This command builds images (if needed), pushes them to cluster machines, and deploys or updates services with zero downtime.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/psviderski/uncloud/llms.txt
Use this file to discover all available pages before exploring further.
Usage
Arguments
Names of specific services to deploy. If not specified, all services in the Compose file are deployed. Dependencies are automatically included.
Flags
Set a build-time variable for services. Used in Dockerfiles that declare the variable with ARG. Can be specified multiple times.Format:
--build-arg VAR=VALUE--build-pull
Always attempt to pull newer versions of base images before building service images.
One or more Compose files to deploy services from. Default:
compose.yaml--no-build
Do not build new images before deploying services.
--no-cache
Do not use cache when building images.
One or more Compose profiles to enable.
--recreate
Recreate containers even if their configuration and image haven’t changed.
--skip-health
Skip the monitoring period and health checks after starting new containers. Useful for faster emergency deployments.Warning: This may cause downtime if new containers fail to start properly.
-y, --yes
Auto-confirm deployment plan. Should be explicitly set when running non-interactively, for example, in CI/CD pipelines.Can also be set with the
UNCLOUD_AUTO_CONFIRM environment variable.Examples
Deploy all services
Deploy specific services
Deploy with a custom Compose file
Deploy with multiple Compose files
Deploy with build arguments
Deploy without using build cache
Deploy with auto-confirm (for CI/CD)
Deploy and recreate all containers
Workflow
- Load Compose file - Parses
compose.yaml(or specified file) - Build images - Builds images for services with
buildconfiguration - Push images - Pushes built images to cluster machines
- Create deployment plan - Analyzes what needs to change
- Show plan - Displays the deployment plan for review
- Confirm - Asks for confirmation (unless
--yesis used) - Execute deployment - Performs rolling updates with zero downtime
Deployment Plan
Before deploying, you’ll see a plan showing what will change:+Create new resource~Update existing resource-Remove resource=No changes
Output
Compose File Extensions
Uncloud supports these Docker Compose extensions:x-machines
Limit service to specific machines:Deploy Configuration
Control service deployment:Zero-Downtime Deployments
By default, Uncloud performs rolling updates:- Starts new containers with the new version
- Waits for health checks to pass
- Updates load balancer to route to new containers
- Stops old containers
Related Commands
uc run- Run a single serviceuc build- Build images without deployinguc service ls- List deployed servicesuc service scale- Scale services
