One Compose file, many services, one project.
How a Compose file becomes separate services on the canvas, how each is built, and how bindings wire them together.
Compose expands into services
A Compose file is not run as a monolith. Each service it declares becomes its own service on the project canvas, with its own source, ports, environment and optional volume. A service with a build context is built — with kaniko if it has a Dockerfile, or with buildpacks if it does not — and a service that references an image is pulled directly.
Relationships become bindings
Where Compose expresses a dependency between services, Hosthing represents it as a real ServiceBinding: it delivers the endpoint and credentials to the dependent service and opens the network path between them. On the canvas that edge carries a live state — CONNECTED, DEGRADED or ACTION_REQUIRED — so a connection problem is visible, not hidden in a config file.
A database running as another service is not reached through localhost; it has its own address inside the project network. Prefer private connectivity where it is available.
Set the base directory and Dockerfile path for each service in a monorepo so the right build context is used.
In-project database vs managed database
A database declared in Compose runs as an in-project container with a volume, co-located on the project’s server — a simple, cheap path for self-hosting. A managed database is the dedicated offering with its own node, automated backups and point-in-time recovery. An application can bind to either; which one is right depends on how much operational protection the data needs.
Availability and protection features vary by engine and configuration. Confirm the current options in your console before moving production data.