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: postgres and pgvector/pgvector (16 stays 16, else 17), mysql (MySQL 8.4), mariadb (MariaDB 11.4), clickhouse/clickhouse-server (ClickHouse 25.8), mongo (MongoDB 8.0), redis and valkey/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 a build:. 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’s origin, 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: and env_file: (a name, or path:). A build’s args are named in the notes: set them with yawl 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 with yawl env set.
  • Named volumes become Yawl volumes at the same path. Bind mounts and volumes with no name are skipped.
  • command: and entrypoint: of a web service or a worker become its command (Prebuilt images, “One image, several processes”): a list stays as written, a string runs as [sh, -c, "<string>"], and entrypoint: goes in front of command: (two lists are joined; with a string, one sh -c line). An ENTRYPOINT built 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, restart and 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> and SERVICE_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 --apply the import names the variables that wait for one.
  • SERVICE_URL_<SERVICE> and SERVICE_FQDN_<SERVICE>, with an optional _<PORT> (for example SERVICE_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.io or 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 with yawl 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_ or SERVICE_FQDN_ name is left out with a note: a database has no address; reference <db>.url. A bare SERVICE_ key that is none of these names is the host’s own: set it with yawl env set.