Moving from Kamal.

Your config/deploy.yml imports as it is written, accessories included.

  1. Connect a server

    Install the agent. It connects out to the panel.

  2. Import

    In the repository, run yawl import kamal. Read the notes, then run it 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.

service: shop
image: acme/shop
servers:
  web:
    - 192.168.0.1
  job:
    hosts: [192.168.0.1]
    cmd: bin/jobs
proxy:
  ssl: true
  host: shop.acme.uz
  app_port: 3000
registry:
  username: acme
  password: [KAMAL_REGISTRY_PASSWORD]
builder:
  arch: amd64
env:
  clear:
    RAILS_ENV: production
    DATABASE_URL: postgres://shop@shop-db:5432/shop_production
  secret:
    - RAILS_MASTER_KEY
volumes:
  - "shop_storage:/rails/storage"
accessories:
  db:
    image: postgres:16
    host: 192.168.0.2
    env:
      secret: [POSTGRES_PASSWORD]
$ yawl import kamal --server hel1
Added shop-db (postgres).
Added shop (web).
Added shop-job (worker).
Note: shop-db: the data is not moved; restore a dump into shop-db once it runs (yawl db import).
Note: shop-db: POSTGRES_PASSWORD is not carried; Yawl makes the database's own password.
Note: shop: volume shop-storage at /rails/storage starts empty; copy the data from shop_storage into it once it runs.
Note: shop: RAILS_MASTER_KEY is a Kamal secret; set it with yawl env set shop RAILS_MASTER_KEY.
Note: shop-job: volume shop-storage is on shop only; Yawl does not share a volume between services.
Note: shop-job: RAILS_MASTER_KEY is a Kamal secret; set it with yawl env set shop-job RAILS_MASTER_KEY.
Note: .kamal/secrets is not read: it may run commands.
Note: shop: builder is not carried; Yawl builds from the repository and reaches the server itself.
Note: shop: image is not carried; Yawl builds from the repository and reaches the server itself.
Note: shop: registry is not carried; Yawl builds from the repository and reaches the server itself.
Wrote yawl.yaml. Next: yawl apply, then set the variables:
  yawl env set shop DATABASE_URL --ref shop-db.url
  yawl env set shop RAILS_ENV
  yawl env set shop-job DATABASE_URL --ref shop-db.url
  yawl env set shop-job RAILS_ENV

What becomes what

AreaKamalIn Yawl
ServicesserviceThe web service's name.
servers.webA web service built from the repository, on proxy.app_port, or 80 without one.
Another roleA worker named <service>-<role>, with its cmd.
Accessoriespostgres, mysql, mariadb, mongo, redis and valkey images become that Yawl database, named <service>-<accessory>.
Settingsproxy.host proxy.healthcheck.pathdomains and health_path. Without a path, /up, as kamal-proxy checks.
env.clearVariables. A URL naming an accessory's host becomes its reference.
env.secretNamed, for yawl env set.
volumesVolumes at the container path, on the web service only.
Not carried.kamal/secretsNot read: it may run commands.
image registry builder sshYawl builds and reaches the server itself.
DataDatabases and volumes start empty.
Other accessoriesNamed in the notes.