Prebuilt images
A web service, a worker or a cron job can run a prebuilt image (Grafana, Uptime Kuma, an image your CI built) instead of being built from a repository. Postgres stays Yawl’s own.
Adding one
- In the dashboard: New service, a kind, then From an image. Type the reference, for example
grafana/grafana:11.6orghcr.io/acme/api:1.4; the name fills itself. - In
yawl.yaml:image: grafana/grafana:11.6in place ofrepo. A service has one or the other.
Port, health path, domains, variables, volumes, limits and the release command work as for any service. Build-time variables do not apply: an image is a finished build.
One image, several processes
A web service or a worker can replace the image’s CMD with command, an argument list as a cron job’s, so one image runs as several services:
services:
- {name: api, kind: web, image: ghcr.io/acme/app:1.4, port: 8000}
- {name: jobs, kind: worker, image: ghcr.io/acme/app:1.4, command: [python, -m, app.worker]}
Without command the image’s own CMD runs. It is set in yawl.yaml only, and a change to it is a change of the service: it shows in the plan and runs at the next deploy. A rollback starts the earlier image with the command the service has now. A database has no command.
Deploying
An image service deploys only when you press Deploy (or run yawl deploy). A push to GitHub never deploys it.
Each deploy pulls the reference again, so a tag that moved (grafana/grafana:11.6 now pointing at 11.2) is picked up. The deploy keeps the digest it pulled; the list shows the reference and the digest’s first 12 characters. A rollback starts that deploy’s own image, the same digest, even if the tag moved since.
The first step of an image deploy is Pull instead of Build.
Private registries
Integrations, Registries: a host (ghcr.io, docker.io, registry.gitlab.com, registry.acme.uz:5000), a user and a token. The token is kept in the panel’s vault, sent to a server only inside a pull, and never shown again. A reference without a host (acme/api:1) uses the login for docker.io.
When a pull fails
ghcr.io refused the pull: add a login for ghcr.io in Integrations, Registries.grafana/grafana:99 does not exist.grafana/grafana:11.6 has no linux/arm64 image; this server is arm64.
Previews
A preview environment runs the same image as its source environment; the pull request’s code is not in that image.