Skip to content

Deploy from git

Deploy builds an app from a repository, runs it in a container and, if you want, creates a site with a certificate for it. Start with New app.

  • GitHub, GitLab, Gitea, Bitbucket or any git server over SSH or HTTPS.
  • Access: a deploy key (default, for an SSH address), a token, a public repository with no credentials, or a GitHub App.
  • With a GitHub App no webhook is needed in the repository: the panel polls it every minute. Without the App it polls every 5 minutes, and a webhook makes it react sooner. The webhook address is built from the panel’s public address, see Panel access.
  • For a monorepo you can set a folder and paths: pushes elsewhere do not start a build.
  • A push to a branch (default), a tag push matching a pattern, or by hand; for a ready image, a webhook.
  • Builders: Railpack (detects Node, PHP, Go, Python and others), your own Dockerfile, a static site, a ready image, compose.
  • Builds run in BuildKit with a cache; the default timeout is 30 minutes.
  • Zero-downtime (default): the new container takes traffic after its health check, and the old one finishes its requests for 10 seconds. Recreate stops the old one before starting the new one.
  • Health check: an HTTP path where any code below 400 is a success, or a TCP check; timeout 60 seconds.
  • Release command runs once before traffic switches, for example for migrations. A failure cancels the release.
  • Without a domain the app is reachable only on 127.0.0.1. With a domain the panel creates a site and issues a certificate.
  • Volumes keep data across releases and rollbacks. With Zero-downtime the old and new release share volumes during the switch; for SQLite pick Recreate.
  • Compose is always recreated, without a release command or its own volumes. By default the compose file may not use privileged mode, host namespaces or the Docker socket, capabilities, devices, or host paths outside the release. Host access lifts this: then anyone who can push to the repository gets root on the server.

Variables are for runtime, for build or for both. Secrets are stored encrypted and masked in build logs; by default they are not passed to previews. Runtime variables apply on restart, build variables on the next deploy.

The last 5 releases are kept. Roll back runs a saved image without a rebuild.

A pull request gets a copy of the app at <app>-pr-<number>.<domain>; this needs a wildcard DNS record. A preview is removed when the pull request is closed or merged, or after 7 days without new commits. At most 5 run at once. Compose and ready images have no previews.