yawl.yaml reference

yawl.yaml describes one environment. yawl apply shows the plan for it, then applies it. Every key below, checked against Yawl’s internal/spec.

project: acme
environment: production
server: hel1
services:
  - name: api
    kind: web
    repo: https://github.com/acme/api
    release: [/app/api, migrate]
    domains: [api.acme.uz]
    cpu: 0.5
    memory: 512MB
  - name: acme-db
    kind: postgres

The file

Key What it is
project The project’s name: lowercase letters, digits and dashes.
environment The environment’s name, the same way. A name starting pr- is kept for previews.
server The server it runs on, by its name on the Servers page.
preview true gives every pull request its own copy of this environment. See Preview environments.
services The services, each with the keys below.

Every service

Key What it is
name Lowercase letters, digits and dashes, starting with a letter, up to 31.
kind web, worker, cron, postgres, valkey, mysql, mariadb, mongodb or clickhouse.
cpu A CPU limit in cores, at least 0.1. No limit when left out.
memory A memory limit like 512MB or 1.5GB, at least 64MB. No limit when left out.
tags Up to 10 labels to filter and deploy by: lowercase letters, digits and dashes.

Apps: web, worker and cron

Key What it is
repo The repository to build, an https:// or git@ URL.
image A prebuilt image like grafana/grafana:11, in place of repo. It deploys only when you press Deploy.
branch The branch to build. main when left out.
auto_deploy false stops a push from deploying it. On when left out.
builder railpack builds with Railpack, for an app from a repository.
watch File patterns like api/**: a push deploys only when a changed file matches.
command Replaces the image’s start command, as an argument list.
release Web and worker: a command run on the new image before it starts, as an argument list.
release_timeout How long release may run. 10m when left out.

Web services

Key What it is
port The port the app listens on. 10000 when left out.
health_path The path checked before traffic moves to a new version. / when left out.
health_timeout How long a new version has to pass its check. 60s when left out.
drain_timeout How long the old version keeps running after traffic moves. 30s when left out.
domains Host names, each with a certificate. A host can carry a path, like acme.uz/api.
www bare or www: the name the other one answers a 301 to, when both are in domains.
noindex true asks search engines to stay away.

Web services and workers

Key What it is
replicas 1 to 10 copies on the server. Not with a volume.
volumes Up to 4 directories kept across deploys and backed up nightly, each a name and a path. See Volumes.
name In volumes: lowercase letters, digits and dashes.
path In volumes: the absolute path in the container.

Cron jobs

Key What it is
schedule Five cron fields, like 0 3 * * *.
timezone A time zone like Europe/Berlin. The panel’s own when left out.
timeout How long a run may take, 1m to 24h. 1h when left out.

A cron job needs a command.

Databases

Key What it is
version The major version: Postgres 17 (default) or 16, Valkey 8, MySQL 8, MariaDB 11, MongoDB 8, ClickHouse 25.
backup true backs up a Valkey or a ClickHouse every night. The others always are.
backup_at The nightly backup time, HH:MM in UTC. 03:00 for a database, 03:30 for volumes.
keep How many backups to keep, for a database or a service with volumes: daily, weekly and monthly.
daily In keep: 1 to 90. 7 when left out.
weekly In keep: 0 to 52. 4 when left out.
monthly In keep: 0 to 24. 0 when left out.
pitr Postgres: true keeps 7 days of changes, to restore to any second of them.
outside_port Postgres: a port from 1024 to 65535 open outside the server, TLS only. Off when left out.
allow Postgres: who may connect on outside_port, as CIDRs like 203.0.113.4/32.

More in Databases.