Moving from Dokku.

Dokku keeps an app's setup on its server. The import reads what Dokku prints.

  1. Connect a server

    Install the agent. It connects out to the panel.

  2. Import

    Save config:export and storage:list, run yawl import dokku on them, then again with --apply.

  3. Move the data

    Restore a dump into each database with yawl db import, copy files into each volume, then yawl deploy.

$ 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
Added shop (web).
Added shop-postgres (postgres).
Added cache (valkey).
Note: shop: port 5000 is Dokku's default for buildpack apps; an app from a Dockerfile may listen on another, so check port in yawl.yaml.
Note: shop-postgres: the data is not moved; restore a dump into shop-postgres once it runs (yawl db import).
Note: cache: the data is not moved; restore a dump into cache once it runs (yawl db import).
Note: shop: volume storage at /app/storage starts empty; copy the data from /var/lib/dokku/data/storage/shop into it once it runs.
Wrote yawl.yaml. Next: yawl apply, then set the variables:
  yawl env set shop DATABASE_URL --ref shop-postgres.url
  yawl env set shop GREETING
  yawl env set shop REDIS_URL --ref cache.url

What becomes what

AreaDokkuIn Yawl
AppThe appA web service built from the repository, on port 5000, Dokku's default for buildpack apps.
--nameThe service's name. Without it, the folder's name.
export KEY='value'Variables.
storage:listVolumes at the container path. They start empty.
Databasesdokku-postgres-<name>A URL on that host becomes a Yawl Postgres named <name>, and a reference to it.
MySQL, MariaDB, MongoDB, RedisThe same. Redis becomes Valkey.
The app's own nameA database named like the app gets its kind after it, like shop-postgres.
Not carriedDOKKU_* GIT_REVDokku's own. Left out.
A Dockerfile app's portIt may listen on another port than 5000. Check port in yawl.yaml.
DataDatabases and volumes start empty.