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
originand 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 setasks 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. PORTis 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: webis a web service on port 10000, Render’s ownPORT.type: pservandtype: workerare workers. A private service has no address in Yawl; other services reach it by name.type: cronis a cron job with the sameschedule, in UTC as on Render.type: keyvalue(orredis) is Valkey.databases:are Postgres, onpostgresMajorVersionwhen it is 16 or 17 (else 17).runtime: imagewithimage.urlruns that image.startCommand(ordockerCommand) iscommand;preDeployCommandisrelease.healthCheckPath,numInstances(at most 10) anddomainsarehealth_path,replicasanddomains.diskis a volume at itsmountPath.envVarswithvalueare variables.fromDatabaseorfromServicenaming a database, withconnectionString, is a reference,<db>.url.generateValue: trueis made on your machine, 32 letters and digits, set only with--apply, never printed.fromGroupsets 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
appis the service’s name.[build] imageruns that image; otherwise the app is built from the repository.[http_service] internal_portmakes it a web service on that port; without[http_service], the first[[services]]port.[processes]: the process[http_service]names (orapp) 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 atdestination, named aftersource.[deploy] release_commandisrelease.[[http_service.checks]] pathishealth_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: ./Dockerfileis a web service built from the repository, on port 80, CapRover’s default.imageNameruns 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
serviceis the web service’s name.servers.web(or a plain list of hosts) is a web service built from the repository, onproxy.app_port(80 without one).- Another role, like
servers.jobwithcmd, is a worker named<service>-<role>, with its command. proxy.host(orhosts) andproxy.healthcheck.patharedomainsandhealth_path; without a path,/up, as kamal-proxy checks.env.clear(and a role’s ownenv) are variables. A URL naming an accessory’s host,<service>-<accessory>, is its reference.env.secretnames are named, foryawl 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.
--namenames 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, likeshop-postgres. storage:listlineshost:containerare 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.