What each deployment contains
One deployment is one copy of your application in one AWS Region of one customer’s account. It contains:
Deployz adds the optional parts only when the analysis finds that your application needs them. For the full list of AWS resources, see AWS resources Deployz creates.
Queues and scheduled jobs are at Preview maturity. They haven’t been qualified on real AWS accounts.
Container image
- A Dockerfile in the repository. Deployz builds your application from a Dockerfile that produces a production container image. A Dockerfile that’s only for development, is a template, copies files the repository doesn’t contain, or copies nothing from the repository doesn’t count. The build can’t use the
.gitdirectory, because Deployz builds from a source archive that doesn’t include it. - One container image per release. The web service, every worker, the migration task, and scheduled jobs all run the same container image with different commands. A worker that needs its own Dockerfile isn’t supported.
- A start command in the repository. The Dockerfile needs a
CMDorENTRYPOINT, or the repository needs astartscript inpackage.json. Deployz uses the lastCMDorENTRYPOINTin the production stage. TheCMDof aHEALTHCHECKdoesn’t count. The Deployz dashboard has no field for the start command, so set it in your repository. - Linux on x86_64. Deployz builds and runs containers on Linux with the x86_64 CPU architecture (
linux/amd64). Containers run on AWS Fargate.
How Deployz builds the container image
Deployz builds the container image when you create a release:- It runs
docker buildwith the Dockerfile the analysis selected. - The build context is the Dockerfile’s own directory. For example,
COPY requirements.txt .inbackend/Dockerfilecopiesbackend/requirements.txt. When the analysis finds that a Dockerfile is meant to be built from the repository root, such as one in adocker/folder, Deployz uses the root instead. This also applies to a Dockerfile in a subdirectory that copies its whole context from a directory with no project file. - A multi-stage Dockerfile builds its last stage. If the last stage is a tooling stage rather than the application, Deployz builds the application stage the analysis found.
- Build values you configure reach the build as build arguments. See Build or runtime.
Web service
Your web service must:- Listen on one port. Deployz sends customer traffic and health checks to a single container port. The analysis looks for it in the Dockerfile (
EXPOSEorENV PORT), env files, Compose files, and code defaults. If it can’t find one, set it on the Configuration tab. - Listen on all network interfaces. A server that binds only to
127.0.0.1orlocalhostnever receives traffic. Bind to0.0.0.0. - Answer a health check. The load balancer requests a health check path on your port. Deployz doesn’t treat a deployment as healthy, or send traffic to a new release, until this check passes.
- Keep no state on local disk. The container’s disk is wiped on every deploy and restart. Store uploaded and generated files in the S3 bucket, and data in the database.
Health check path
The analysis chooses the health check path. You can change it on the Health check row in Configuration › Resources.
A path you enter yourself must return HTTP
200. If your application checks the Host header, it might answer the load balancer’s request with HTTP 400. When the analysis detects this, Deployz also accepts 400, because the response still proves the process is up.
A changed port or health check path applies to new deployments only. Existing deployments keep the values they were created with.
Background workers
A worker is a long-running process, such as a job runner, that runs next to the web service. Deployz runs one container for each worker that your repository declares, for example a non-web process in aProcfile or a worker service in a production Compose file.
- Each worker runs from the same container image as the web service, with its own start command.
- Each worker runs one task. Workers have no URL and receive no traffic from the load balancer.
- If the analysis finds code that looks like background jobs but no command that starts a separate job runner, it shows a recommended finding. If the web process already runs the jobs, you don’t need to change anything. Otherwise, declare the job runner with its own start command in your repository, for example a worker line in a
Procfile.
Data services
- Database. PostgreSQL 16 or MySQL 8.0. Deployz provisions it, connects your application to it, and keeps automated backups for 7 days. If your application has a migration command, see Database migrations.
- Cache. A single-node Valkey cache that’s compatible with standard Redis clients. It has no TLS and no cluster mode.
- File storage. One S3 bucket, created for every deployment. Your application gets its credentials from AWS automatically, so it doesn’t need access keys.
Queues and scheduled jobs (Preview)
- Queues (Preview). Deployz provisions an SQS Standard queue only when the analysis finds clear evidence that your application both sends messages to it and receives them. Weaker evidence becomes a question for you. The analysis reads only JavaScript and TypeScript code for queues. SQS use in Python code becomes a question and never creates a queue. You can’t declare a queue by hand.
- Scheduled jobs (Preview). Deployz provisions a scheduled job only from a
render.yamlservice withtype: cron, or a KubernetesCronJobmanifest, that names both a schedule and a command. The job runs your release’s container image as a one-shot task.
Sizes
Every deployment uses one of three fixed size presets. The size sets capacity only, never which parts the deployment contains.
You set a Default size and a Minimum allowed size for the application. The customer chooses a size before they install. A deployment’s size and Region can’t be changed after it’s created. For database and cache sizes and estimated AWS costs, see Sizes and AWS cost.
