From Render, Fly.io, CapRover, Kamal and Dokku

Each import reads the file the platform keeps an app’s setup in and does what yawl compose import does (From docker-compose.yml): it adds services to yawl.yaml, making the file when there is none, prints a note for everything it could not carry, and prints the yawl env set commands for the variables. The flags are the same: -f, --server, --project, --apply, --yes.

What holds for all five:

  • An app built from source gets this folder’s origin and current branch. An app from an image keeps the image.
  • A start or release command written as one string runs as sh -c "<string>", as the platform runs it.
  • A value Yawl cannot know (a secret kept on the platform) is never guessed: the import names it, and yawl env set asks for it.
  • Data is never moved. A database or a disk becomes an empty Yawl database or volume; the notes say to restore a dump (yawl db import) or copy the files in.
  • PORT is left out: Yawl sets it to the service’s port.

Render

yawl import render --server hel1

It reads render.yaml, or the file you name.

What becomes what

  • type: web is a web service on port 10000, Render’s own PORT.
  • type: pserv and type: worker are workers. A private service has no address in Yawl; other services reach it by name.
  • type: cron is a cron job with the same schedule, in UTC as on Render.
  • type: keyvalue (or redis) is Valkey.
  • databases: are Postgres, on postgresMajorVersion when it is 16 or 17 (else 17).
  • runtime: image with image.url runs that image.
  • startCommand (or dockerCommand) is command; preDeployCommand is release.
  • healthCheckPath, numInstances (at most 10) and domains are health_path, replicas and domains.
  • disk is a volume at its mountPath.
  • envVars with value are variables. fromDatabase or fromService naming a database, with connectionString, is a reference, <db>.url.
  • generateValue: true is made on your machine, 32 letters and digits, set only with --apply, never printed.
  • fromGroup sets the group’s variables on each service that uses it; a generated one is one value for the group.

Not carried

buildCommand (Yawl’s builder or Railpack decides), rootDir, a dockerfilePath off the root, plan, region, static sites, sync: false values (named, for yawl env set), and a database’s user, host or other single properties. With only projects:, the first environment is read.

Fly.io

yawl import fly --server hel1

It reads fly.toml.

What becomes what

  • app is the service’s name.
  • [build] image runs that image; otherwise the app is built from the repository.
  • [http_service] internal_port makes it a web service on that port; without [http_service], the first [[services]] port.
  • [processes]: the process [http_service] names (or app) is the web service; each other is a worker named <app>-<process>, with its command.
  • [env] are variables, on every process.
  • [mounts] is a volume at destination, named after source.
  • [deploy] release_command is release.
  • [[http_service.checks]] path is health_path.

Not carried

Secrets, Fly Postgres, regions and machine sizes are not in fly.toml. List the secrets with fly secrets list and set each with yawl env set.

CapRover

yawl import caprover --server hel1

It reads captain-definition (schema version 2). The app is named after the folder.

What becomes what

  • dockerfilePath: ./Dockerfile is a web service built from the repository, on port 80, CapRover’s default.
  • imageName runs that image.

Not carried

dockerfileLines, or a dockerfilePath elsewhere: Yawl builds the Dockerfile at the repository’s root, so move it there. Variables, persistent directories and the port are kept in CapRover, not in the file.

Kamal

yawl import kamal --server hel1

It reads config/deploy.yml (Kamal 2).

What becomes what

  • service is the web service’s name.
  • servers.web (or a plain list of hosts) is a web service built from the repository, on proxy.app_port (80 without one).
  • Another role, like servers.job with cmd, is a worker named <service>-<role>, with its command.
  • proxy.host (or hosts) and proxy.healthcheck.path are domains and health_path; without a path, /up, as kamal-proxy checks.
  • env.clear (and a role’s own env) are variables. A URL naming an accessory’s host, <service>-<accessory>, is its reference.
  • env.secret names are named, for yawl env set.
  • An accessory with a database image (postgres, mysql, mariadb, mongo, redis, valkey) is that Yawl database, named <service>-<accessory>.
  • volumes (host:container) are volumes at the container path, on the web service only: a Yawl volume is one service’s, so the notes name each other role that had it.

Not carried

.kamal/secrets is not read: it may run commands. image, registry, builder and ssh: Yawl builds and reaches the server itself. Any other accessory is named.

Dokku

Dokku keeps an app’s setup on its server, so the import reads what Dokku prints:

ssh dokku@host config:export shop > dokku.env
ssh dokku@host storage:list shop > dokku-storage.txt
yawl import dokku dokku.env --storage dokku-storage.txt --name shop --server hel1

What becomes what

  • The app is a web service built from the repository, on port 5000, Dokku’s default for buildpack apps. --name names it; without it, the folder’s name.
  • export KEY='value' lines are variables.
  • A URL on a dokku-postgres-<name> host is a Yawl Postgres named <name> and a reference to it. MySQL, MariaDB, MongoDB and Redis (Valkey) links likewise. A database with the app’s name gets its kind after it, like shop-postgres.
  • storage:list lines host:container are volumes at the container path.

Not carried

DOKKU_* and GIT_REV are Dokku’s own and left out. An app from a Dockerfile may listen on another port than 5000; check port in yawl.yaml.