From docker-compose.yml
In the repository, beside its Compose file:
yawl compose import --server hel1
It reads the Compose file Compose itself would (compose.yaml, compose.yml, docker-compose.yaml, then docker-compose.yml), or the file you name, and adds a Yawl service for each Compose service to yawl.yaml, making the file when there is none (the project is the folder’s name; --project names another). It prints what it added, a note for everything it could not carry, and the yawl env set commands for the variables. With --apply it applies yawl.yaml and sets the variables itself, sealed on your machine as yawl env set does. Then deploy each service.
What becomes what
- Database images from Docker Hub and their makers become Yawl databases, backed up nightly:
postgresandpgvector/pgvector(16 stays 16, else 17),mysql(MySQL 8.4),mariadb(MariaDB 11.4),clickhouse/clickhouse-server(ClickHouse 25.8),mongo(MongoDB 8.0),redisandvalkey/valkey(Valkey 8), and Bitnami’s of these. An image of your own named like one (ghcr.io/acme/postgres) stays an app. A version Yawl does not run is named in the notes. Yawl makes each one’s password; the Compose one is not carried, nor abuild:. Data in a Compose volume is not moved: restore a dump into the new database once it runs. - A service with
build:is built from this repository’sorigin, on the current branch, from the Dockerfile at its root (or as Builds says when there is none). - Any other
image:runs that image. - Published ports: a service with
ports:is a web service on the container’s port, with its own address and TLS; without, a worker. A UDP port is skipped, a range is its first port, and a service that publishes only ports that are not HTTP (5432, 6379, 1883 and the like) is a worker. - Variables from
environment:andenv_file:(a name, orpath:). A build’sargsare named in the notes: set them withyawl env set --build. A URL naming a database service by its host (postgres://…@db:5432/…) becomes a reference,db.url. A${VAR}is set as written; give it its value withyawl env set. - Named volumes become Yawl volumes at the same path. Bind mounts and volumes with no name are skipped.
command:andentrypoint:of a web service or a worker become itscommand(Prebuilt images, “One image, several processes”): a list stays as written, a string runs as[sh, -c, "<string>"], andentrypoint:goes in front ofcommand:(two lists are joined; with a string, onesh -cline). AnENTRYPOINTbuilt into the image still runs first, so the notes name each service that had one. A database drops both, with a note.- Names Yawl does not take (
My_App) become ones it does (my-app), in references too; two that would meet stop the import. depends_on,healthcheck,networks,restartand the rest are left out; each is named once in the notes.
A name already in yawl.yaml stops the import before anything is written, unless that service is just as this import would write it: then it is left as it is, so --apply can follow a first run without it.
Coolify templates
A Compose file from Coolify’s templates imports as it is written. Coolify’s names are filled in the way Coolify fills them:
SERVICE_PASSWORD_<NAME>(32 letters and digits),SERVICE_PASSWORD_64_<NAME>,SERVICE_PASSWORDWITHSYMBOLS_<NAME>(and_64_),SERVICE_USER_<NAME>andSERVICE_LOWERCASEUSER_<NAME>(16),SERVICE_BASE64_<NAME>(32,_32_,_64_,_128_; letters and digits, as in Coolify),SERVICE_REALBASE64_<NAME>(base64 of 32, 64 or 128 random bytes),SERVICE_HEX_32_,_64_,_128_. One name is one value in every service that uses it.- These values are made on your machine and set as encrypted variables only with
yawl compose import --apply; they are never printed. Without--applythe import names the variables that wait for one. SERVICE_URL_<SERVICE>andSERVICE_FQDN_<SERVICE>, with an optional_<PORT>(for exampleSERVICE_FQDN_GHOST_2368), make that service a web service on the port (80 without one) and are filled with its Yawl address,https://ghost-production.1-2-3-4.sslip.ioor the host alone. The import asks the panel for the server’s address, so log in first; otherwise the name stays as written, with a note. After adding a domain, change these variables withyawl env set.- A database’s password in the template stays out, as for any Compose file: Yawl’s database has its own, and apps get
<db>.url. - A database’s
SERVICE_URL_orSERVICE_FQDN_name is left out with a note: a database has no address; reference<db>.url. A bareSERVICE_key that is none of these names is the host’s own: set it withyawl env set.