Deploy
A deploy rolls a service out onto the servers it may run on, with its settings and variables as they are at that moment. Each deploy is a deployment, kept in the service's history.
Everything on these pages works from the console, the CLI, the API and MCP.
Where a service comes from
| Source | What a deploy does | Guide |
|---|---|---|
| A container image | Your servers pull the image and start it. The deployment starts at deploying. | Deploy an image |
| A Git repository | One of your servers clones the repository and builds an image, with your Dockerfile or with Railpack, then your servers start it. The deployment starts at queued. | Deploy from Git |
| A template | In the console, a template from the catalogue becomes ordinary image services, such as an app and its database, which deploy like any image. | Deploy a template |
Deploy a service
The service needs at least one server to run on. Then:
Open the project and click the service on the canvas. On its Overview tab, click Deploy. The Deployments tab then shows the new deployment and its state as it moves. A new service can also deploy at once: leave Deploy after creating ticked in New service.
You need deploy access to the project. See Per-project access.
Follow a deployment
In the console, the service's Deployments tab lists its deployments, newest first, each with its state; click one for its image or commit and the servers it runs on. From the CLI and the API:
| CLI | API | |
|---|---|---|
| A service's deployments, newest first | openpanel deployments web | GET /services/{id}/deployments |
| One deployment | openpanel deployments get <id> | GET /deployments/{id} |
| The build's output and what the servers reported: image pulled, container started, healthy | openpanel logs --deployment <id> | GET /deployments/{id}/logs |
| The same reports, one event each | GET /deployments/{id}/events | |
| What the running containers print | openpanel logs web | GET /services/{id}/logs |
The console does not show logs yet: a service's Logs tab says Not available yet. See Build and deploy logs and Service logs.
In this section
Deploy an image
Run a public image from Docker Hub or another registry.
Deploy from Git
Build a repository's branch or commit on your own server.
Deploy a template
An app and its database from the catalogue, as ordinary services.
Push to deploy
Deploy on every push, with a webhook per service.
Rollbacks and history
Run an earlier deployment's image again.
Deploy from CI
Deploy from GitHub Actions or GitLab CI with an API key.
How builds work
Dockerfile or Railpack, on the server that runs the service.