Moving from Dokku.
Dokku keeps an app's setup on its server. The import reads what Dokku prints.
Connect a server
Install the agent. It connects out to the panel.
Import
Save
config:exportandstorage:list, runyawl import dokkuon them, then again with--apply.Move the data
Restore a dump into each database with
yawl db import, copy files into each volume, thenyawl 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
| Area | Dokku | In Yawl |
|---|---|---|
| App | The app | A web service built from the repository, on port 5000, Dokku's default for buildpack apps. |
--name | The service's name. Without it, the folder's name. | |
export KEY='value' | Variables. | |
storage:list | Volumes at the container path. They start empty. | |
| Databases | dokku-postgres-<name> | A URL on that host becomes a Yawl Postgres named <name>, and a reference to it. |
| MySQL, MariaDB, MongoDB, Redis | The same. Redis becomes Valkey. | |
| The app's own name | A database named like the app gets its kind after it, like shop-postgres. | |
| Not carried | DOKKU_* GIT_REV | Dokku's own. Left out. |
| A Dockerfile app's port | It may listen on another port than 5000. Check port in yawl.yaml. | |
| Data | Databases and volumes start empty. |