What’s in a Deployment?
On Aptible, developers can deploy code, and in seconds, the platform will transform their code into app containers with zero-downtime — completely abstracting the complexities of the underlying infrastructure. Apps are made up of three components:- An Image: Deploy directly from a Docker image, or push your code to Aptible with
git pushand the platform will build a Docker image for you. - Services: Services define how many containers Aptible will start for your app, what command they will run, and their Memory and CPU Limits.
- Configuration (optional): The configuration is a set of keys and values securely passed to the containers as environment variables. For example - secrets are passed as configurations.
Deploy Methods
Deploying with Git
Add a Dockerfile to your repository and push it to Aptible’s Git Remote. Aptible builds the image and deploys it for you. See Deploying with Git for Dockerfile requirements, SSH key setup, and private registry authentication.Deploying with Docker Image
Build your image locally or in CI, push it to a registry, and deploy it withaptible deploy --docker-image. See Deploying with Docker Image for registry authentication and FAQs.
The Aptible Terraform provider only supports deploying via Docker Image.
The Deploy Process
The process is similar regardless of method:- You define your Services and Configuration (such as environment variables)
- Aptible provisions the underlying infrastructure securely and reliably
.aptible.yml to define before_deploy hooks and after-success/after-failure commands.
Releases & Rollbacks
Every deploy, restart, configure, or scale operation launches a new Release — a new set of Containers for a Service. Services without an Endpoint deploy with zero container overlap by default; Services with an Endpoint get a zero-downtime, load-balancer-driven cutover instead. If a deployment fails, Aptible supports both:- Automatic rollbacks for when things fail
- Manual rollbacks via the
aptible operation:cancelCLI command, to cancel an in-progress operation and revert it

