Deploying a service
Deploy from Git, a container image or a template.
From Git
Connect a repository and Pyo builds it on one of your builders.
Paste the repository's URL as you have it. github.com/acme/web, https://gitlab.com/acme/web.git and SSH forms like git@github.com:acme/web.git all work. A GitLab URL with /-/tree/<branch> picks that branch too. Leave the branch empty to build the repository's default branch, like main, master or trunk.
- Zero config: with no DockerfileA file in your repository with the steps to build your code into a container image., Pyo detects your framework and builds it.
- Static sites: plain HTML or a built frontend, like Vite or Astro. See Static sites.
- Dockerfile: if you have one, Pyo uses it. You can set the Dockerfile path, the build contextThe folder whose files are sent to the build. Paths in your Dockerfile are read from there. and build argumentsValues passed in at build time, which your Dockerfile reads with ARG..
Deploy on every push
Connect GitHub, and each push to a service's branch deploys it. This works for private repositories too. You can turn it off per service.
Each pull request can also get its own preview.
From a container image
Run any image by name, such as ghcr.io/acme/api:1.2. For private images, save a registry login first.
Each deploy looks the tag up in its registry and runs the digest it points to now. A tag you push again is pulled on the next deploy, and a server's older image under that tag never runs. Restarts and new replicas run the same digest. To deploy another tag or a digest from CI, see Deploy a tag or digest.
Pyo picks the port from the image's EXPOSE when it would otherwise have to guess, and sets the health check to match. It reads public images only. For a private image, or a registry that's slow to answer, check the port before you deploy.
From Docker Compose
Import a Compose file as a project, with a service for each Compose service. See Importing Docker Compose.
From a template
Pick a template and Pyo fills in the defaults. See Deploying a template.
From another platform
Bring your services over from Coolify, Dokploy, Railway or Vercel, with their variables, domains and databases. See Importing from another platform.
Build machines
Git builds run on a builder. A builder runs on a server in your cluster or on a dedicated build server.
Cancel or retry
The service's Deployments tab lists its deployments. Open one to see its status and logs. You can cancel a running deployment or retry a failed one from its row.
Health checks
A health check tells Pyo when a new version is ready. It can be an HTTP path, a TCP port or a command. Traffic only moves to the new version once the check passes. With None, deploys don't wait for it to be ready.
For a service from Git, Pyo picks the check until you change it. A static site gets a check of /.
A service's addresses
A service's Overview shows where it can be reached:
- Public: its servers' public addresses. Point a domain's DNS at one of these.
- Tailscale: its servers' Tailscale addresses, for devices on your tailnetYour private Tailscale network. Only devices you've added to it can reach addresses on it..
- Internal: the name other services in the project use to reach it, like
api:8080.
Choose +N to see them all, including the longer internal name for services in other projects.