Moving from Kamal.
Your config/deploy.yml imports as it is written, accessories included.
Connect a server
Install the agent. It connects out to the panel.
Import
In the repository, run
yawl import kamal. Read the notes, then run it again with--apply.Move the data
Restore a dump into each database with
yawl db import, copy files into each volume, thenyawl 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
| Area | Kamal | In Yawl |
|---|---|---|
| Services | service | The web service's name. |
servers.web | A web service built from the repository, on proxy.app_port, or 80 without one. | |
| Another role | A worker named <service>-<role>, with its cmd. | |
| Accessories | postgres, mysql, mariadb, mongo, redis and valkey images become that Yawl database, named <service>-<accessory>. | |
| Settings | proxy.host proxy.healthcheck.path | domains and health_path. Without a path, /up, as kamal-proxy checks. |
env.clear | Variables. A URL naming an accessory's host becomes its reference. | |
env.secret | Named, for yawl env set. | |
volumes | Volumes at the container path, on the web service only. | |
| Not carried | .kamal/secrets | Not read: it may run commands. |
image registry builder ssh | Yawl builds and reaches the server itself. | |
| Data | Databases and volumes start empty. | |
| Other accessories | Named in the notes. |