Skip to Content

Deploy a Compose file

Paste a docker-compose.yml and run its services as one app, with domains, HTTPS, variables and backups.

Paste a docker-compose.yml to run several containers as one app. Deplo adds the domains, HTTPS, variables, storage and backups.

The file is in your repository? Deploy the repository instead: Deplo reads the file on every deploy.

Deploy a Compose file

Pick Compose

Add New -> Application -> Compose, then Next.

The Compose source step of the wizard

Paste your file

Click Write compose and paste it. The editor flags, as you type, what Deplo changes, what needs a permission and what it refuses.

Pick the service that gets the domain

Deplo ticks one and marks it Primary: a service with a port that no other service depends on, never a database. Tick any other service that needs its own address.

Deploy

App name comes from the first service, the server is under Advanced. Click Deploy.

Edit the file later in Settings -> Deployments.

What Deplo changes or refuses

In your fileWhat happens
ports:Needs Publish ports
privileged, cap_add, devices, network_mode, pid: host and other host-level keysNeeds Bind server folders
A path on the server, like /srv/data or ../data, or an external volumeNeeds Bind server folders. A ./data path is the app's own folder, and free
traefik.* labelsNeeds Configure Traefik. Domains route without them
include:, extends: from another file, label_file:Refused. Paste what they bring in
A service name another app or database in the environment uses, like dbNames already in use: Rename and deploy renames it
container_name:, version:Removed

An instance admin gives the three grants in Settings -> Users. See Permissions.

A Compose file in your repository is stricter: ports: are not opened, keys that need a grant are refused, and only middleware traefik.* labels are kept.

How a Compose app differs

  • Each domain names a service. Change it in Domains.
  • No rollback. To go back, edit the file and Redeploy.
  • Redeploy pulls every image again, so a stack on :latest updates.
  • Storage and cron jobs name a service.
Settings -> Deployment of a running Compose app, with 'View full compose'

Good to know

  • Two services on one hostname, like a UI on / and its API on /api: in Domains, add a second row with the same hostname and a Path of /api.
  • Extra compose flags, in Settings -> Advanced, add flags like --wait to docker compose up. -p, -f, --env-file and --project-directory are refused.

Something wrong? See Deploys and builds.

Did this page help you?

On this page