Deploy a Compose Project
Use a compose project when your app has several services, for example a web app, a worker and a database.
Steps
- Open your Docker host and click Deploy compose.
- Project name: lowercase letters, numbers, dashes and underscores, for example
myapp. - Paste your
compose.yaml, or upload the file. - .env (optional): one
KEY=valueper line. Compose reads it for${VARIABLE}substitution, as it would next to your file. - Tick Always pull the newest images to fetch new versions of tags such as
latest. Otherwise images already on the host are reused. - Click Deploy. Progress appears in the live log.
Example
services:
web:
image: nginx:alpine
ports: ["8080:80"]
restart: unless-stopped
cache:
image: valkey/valkey:8
restart: unless-stopped
Only web publishes a port. cache is reachable from web by its service name, cache, and from nowhere else.
Update or remove a project
- Update: deploy again with the same project name. Changed services are recreated, the rest keep running, and services you deleted from the file are removed.
- Remove: use the remove button on the project's row in the Containers list. Its containers and networks are removed; its volumes are kept.
What compose files may contain
- Privileged containers, bind mounts and devices are allowed: the host is yours.
network_mode: hostis not allowed. Publish ports instead (ports: ["8080:80"]) and give them a public URL.- Each service counts towards your container limits, replicas included. See Docker Plan Limits and Billing.