wheels docker deploy
Deploy your Wheels application using Docker containers.
Synopsis
Description
The wheels docker deploy
command deploys your containerized Wheels application to various Docker environments including Docker Swarm, Kubernetes, or cloud container services.
Arguments
target
Deployment target (local, swarm, kubernetes, ecs, gcp, azure)
local
Options
--tag
Docker image tag
latest
--registry
Docker registry URL
Docker Hub
--namespace
Kubernetes namespace or project name
default
--replicas
Number of replicas
1
--cpu
CPU limit (e.g., "0.5", "2")
Platform default
--memory
Memory limit (e.g., "512Mi", "2Gi")
Platform default
--env-file
Environment file path
.env
--config-file
Deployment configuration file
Auto-detect
--dry-run
Preview deployment without applying
false
--force
Force deployment even if up-to-date
false
--help
Show help information
Examples
Deploy locally
Deploy to Docker Swarm
Deploy to Kubernetes
Deploy to AWS ECS
Dry run deployment
Deploy with resource limits
What It Does
Build and Tag:
Builds Docker image if needed
Tags with specified version
Validates image integrity
Push to Registry:
Authenticates with registry
Pushes image to registry
Verifies push success
Deploy to Target:
Generates deployment manifests
Applies configuration
Monitors deployment status
Performs health checks
Post-Deployment:
Runs database migrations
Clears caches
Sends notifications
Deployment Targets
Local
Uses docker-compose
Development/testing
No registry required
Docker Swarm
Creates/updates services
Load balancing
Rolling updates
Secrets management
Kubernetes
Creates deployments, services, ingress
ConfigMaps and Secrets
Horizontal pod autoscaling
Rolling updates
AWS ECS
Task definitions
Service updates
Load balancer configuration
Auto-scaling
Google Cloud Run
Serverless containers
Automatic scaling
HTTPS endpoints
Azure Container Instances
Container groups
Managed instances
Integration with Azure services
Configuration Files
Kubernetes Example (k8s.yml)
Docker Swarm Example (swarm.yml)
Environment Management
Environment variables can be provided via:
--env-file
optionPlatform-specific secrets
Configuration files
Command line overrides
Health Checks
The deployment includes health checks:
Readiness probes
Liveness probes
Startup probes
Custom health endpoints
Rollback
To rollback a deployment:
Or manually:
Use Cases
Staging Deployments: Test production configurations
Production Releases: Deploy new versions with zero downtime
Scaling: Adjust replicas based on load
Multi-Region: Deploy to multiple regions/zones
Blue-Green Deployments: Switch between environments
Notes
Ensure Docker images are built before deployment
Registry authentication must be configured
Database migrations should be handled separately or via init containers
Monitor deployment logs for troubleshooting
Use
--dry-run
to preview changes before applying
Troubleshooting
Common issues:
Image not found: Ensure image is pushed to registry
Auth failures: Check registry credentials
Resource limits: Adjust CPU/memory settings
Port conflicts: Check service port mappings
See Also
Last updated
Was this helpful?