Skip to Content
Deploy

OCI image deployment

Use OCI images when your application is already packaged outside Zenifra. This flow is recommended for CI pipelines that build the image, publish it to a registry, and promote versions by tag.

When to choose OCI

Choose OCI when:

  • your team already uses Docker in production
  • the image is generated by GitHub Actions, GitLab CI, Jenkins, or another pipeline
  • you want to promote specific tags between environments
  • build steps should not run inside Zenifra
  • the application must keep the same artifact across platforms

For projects that evolve directly from source code, see GitHub Deployment.

Image requirements

The image must:

  • expose a long-running HTTP process
  • listen on 0.0.0.0
  • use the port configured in the Zenifra project
  • receive configuration through environment variables
  • start without depending on local files outside the image or configured volume

Avoid generic tags like latest in production. Prefer tags such as 1.4.2, 2026-05-16, or the commit SHA.

Images reserved for Zenifra's own use cannot be used in customer projects. Project creation, image changes, and Preview Environments reject those references with 422 (IMAGE_NOT_ALLOWED, message This image cannot be used); use your own or a public image.

Official images work without changes, including those that run as root and listen on low ports such as 80. For NGINX, for example:

docker.io/nginx:alpine

In that case, set the project port to 80, the port exposed by the image, unless you have changed the image configuration.

Create the project

In the console:

  1. click Create project in the side menu
  2. in Project Source, choose OCI Image
  3. enter the image, for example ghcr.io/acme/api:1.4.2
  4. in Public Image, choose Yes or, for a private image, No and fill in the Authentication Type
  5. configure the application port
  6. add environment variables
  7. choose plan, instances, and storage
  8. create the project and follow the logs

Console Source and port section with port 80, Docker Image as the source, and the image docker.io/nginx:1.30.5

Update the image

To publish a new version:

  1. generate a new image in your pipeline
  2. publish the tag to the registry
  3. change the project image in the console, with the CLI (zenifra project image set --project <id> --image <image>), with the API, or with the GitHub Action
  4. validate the logs, the public URL, and, on plans with metrics, resource usage

If the image is private, keep the same authentication type defined during creation. For details, see Private registry.

Validation

After publication, confirm:

  • the *.clients.zenifra.com URL responds
  • the /health route returns success, if it exists
  • logs do not show startup errors
  • CPU, RAM, and HTTP requests appear in the metrics, available from the Premium plan; storage usage shows on every plan
  • DATABASE_URL and other variables were manually configured

Next steps

FAQ

Can I convert an OCI project to GitHub later?

Yes. In Edit project, in the Deploy group, the Git repository card connects a GitHub, GitLab, or Forgejo repository to a project created from an image. Saving the connection does not publish a new version: the next ones are built from the code, according to the selected update mode. See GitHub deployment and Deploy from Forgejo.

Can I use a private image?

Yes. Zenifra accepts authentication through AWS ECR or a registry user and token/password.

Should I use latest?

Avoid it in production. Immutable tags make rollback, audit, and support more predictable.

My image runs as root or listens on port 80. Does it work?

Yes. Images that run as root and listen on low ports, such as docker.io/nginx:alpine on port 80, work normally. Just set the project Port field to the port exposed by the image.

Last updated on

On this page