Service Deployments
Deploy managed container services with revisions and health checks
Services can also be deployed and managed from the console, the REST API (
/v1/run/services), or the SDKs. CLI install: getting started.
Deploying a Service
bash
scalix-cloud run deploy --name api \
--image registry.scalix.world/my-org/api:v2 \
--port 8080 \
--min-instances 2From Source
Auto-detect runtime and build:
bash
scalix-cloud deploy ./my-appSupports Node.js, Python, Go, Rust, and Dockerfile.
Revision History
Every deployment creates a new revision:
bash
scalix-cloud run get <service-id>plaintext
REVISION IMAGE STATUS CREATED
rev-4 my-org/api:v4 active 2m ago
rev-3 my-org/api:v3 retired 1d ago
rev-2 my-org/api:v2 retired 3d agoHealth Checks
Configure health checks for your service:
json
{
"health_check": {
"path": "/health",
"port": 8080,
"interval_seconds": 10,
"timeout_seconds": 5,
"healthy_threshold": 2,
"unhealthy_threshold": 3
}
}New revisions only receive traffic after passing health checks.
Environment Variables
bash
scalix-cloud run deploy --name api \
--image my-image:v1 \
--port 8080 \
-e DATABASE_URL=postgres://... \
-e REDIS_URL=redis://...