Skip to Content

Deploy a Docker image

Run an image that is already built, from Docker Hub, GitHub Container Registry or any registry.

Run an image that is already built, like nginx:1.27-alpine or ghcr.io/acme/api:v2.3.1. Nothing is built, so there is no rollback: the tag is your version.

Deploy an image

Type the image

Add New -> Application -> Docker Image, then type the reference. Docker Hub names autocomplete, and a : lists the tags.

The Docker Image source step of the wizard

Check the port

Deplo reads it from the image: nginx gives 80. An image that declares none or several, or a private one, gets 3000. Fix it in Advanced -> Container port.

Deploy

Click Deploy.

Wrong port after the first deploy? In the app's Domains tab, change the hostname's Application port. It applies without a redeploy.

Configure it

Most images read their settings from environment variables, in the app's Environment tab. For data, add a Volume in Settings -> Storage with the full path, like /var/lib/app. See Persistent storage.

Private images

Add the registry once in Settings -> Registries -> Add registry. It needs Manage container registries. Every app of the team pulls with it, Compose services and Dockerfile base images included.

Create a read-only token on the provider first, then fill in Registry host, Username and Token:

  • Registry host: ghcr.io
  • Username: your GitHub username
  • Token: a personal access token (classic) with read:packages

Classic token, not fine-grained

A fine-grained token has no packages permission: the pull fails with unauthorized.

Settings -> Registries, where the credentials for a private image live

Update the image

Settings -> Deployments, Source card: change the tag, Save, then Redeploy.

Good to know

  • Pin a tag, not latest: latest is pulled again only on a redeploy. Security updates offers Update when a newer build fixes a flaw.
  • For a database, use Databases.
  • Several containers? Use Compose or a template.

Something wrong? See Deploys and builds.

Did this page help you?

On this page