wtree Cloud

Docker Compose

Deploy multi-container stacks from a compose file, with env vars, volumes, deployments and cleanup managed in the panel.

Run any docker-compose.yml as a wtree Cloud service, as a plain Compose project or as a Docker Stack on Swarm.

When to use it

Use a Compose service when your app is several containers defined in one file, or when you deploy a ready-made stack. For a single container built from a repository, use an application.

Compose type

TypeRuns asNotes
Docker Composedocker compose upSupports every compose feature.
StackDocker Swarm stackNo build directive: use pre-built images.

Tabs

TabWhat it does
OverviewThe Actions card (deploy, rebuild, start or stop, autodeploy), the service's containers and its domains.
DeploymentsProduction and Previews deployments with live build output and the webhook URL. Cancel queued ones, or Kill build for one in progress.
LogsPer-service logs.
MetricsPer-service metrics.
SettingsSource, Domains, Environment variables, Storage and backups, Networking, Command and import, Scheduled jobs and File patches.

A webhook lets pushes to GitHub, Gitea, GitLab or Bitbucket trigger deployments.

Environment variables

Variables from Settings › Environment variables land in .env but are not injected into containers automatically. Pick one:

docker-compose.yml
services:
  app:
    env_file:
      - .env
docker-compose.yml
services:
  app:
    environment:
      - DATABASE_URL=${DATABASE_URL}
      - API_KEY=${API_KEY}

The first loads every variable. The second passes only the ones you name.

Custom command

wtree Cloud runs a default compose command. A custom command in Settings › Command and import replaces it entirely, so start from the default shown in the UI and add your flags. The command always begins with docker:

compose -p <app-name> -f <compose-path> up -d --build --remove-orphans --force-recreate

For a Docker Stack with replicas and a private registry, add --with-registry-auth. Without it, worker nodes fail to pull images ("no such image", "docker authentication failed").

Compose service overview

Persistent data

Bind mount (../files)Named volume
Direct host accessYesNo
Managed by DockerNoYes
Volume backupsNoYes
Best forConfig files, small datasetsDatabases, large data
docker-compose.yml
services:
  app:
    volumes:
      - ../files/my-configs:/etc/my-app/config
      - my-app-data:/app/data

volumes:
  my-app-data:

Don't use absolute host paths such as /folder:/path: deployments clean them up. Use ../files/... instead.

Files from your repository, such as ./config/file.conf, are lost on later deployments because each deploy re-clones the repo. Move them to a mount in Settings › Storage and backups instead. See volume troubleshooting.

Browse container files

Open Servers, choose the server and open Containers. Use the container's actions menu and pick Browse files. You can preview and edit text files, download or delete files, and use Upload file. Named volumes are browsable from Containers › Volumes. Files outside persistent volumes disappear on restart or redeploy. This needs access to the Docker section.

Delete a service

Delete from the service page, from the project page context menu, or with Bulk actions on the project page. Each dialog has a checkbox, unticked by default, to delete volumes:

  • Unticked: containers and networks are removed, volumes are kept.
  • Ticked: wtree Cloud runs docker compose down --volumes and the data is unrecoverable. It has no effect on Stack services, since docker stack rm keeps volumes.

The service folder on the server, including ../files, is always deleted. Back up bind-mounted data first.

Keyboard shortcuts

Press g, then a key, to switch tab or Settings section.

KeyGoes to
gOverview
dDeployments
lLogs
mMetrics
sSettings
eSettings › Environment variables
uSettings › Domains
bSettings › Storage and backups
aSettings › Command and import

On this page