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
| Type | Runs as | Notes |
|---|---|---|
| Docker Compose | docker compose up | Supports every compose feature. |
| Stack | Docker Swarm stack | No build directive: use pre-built images. |
Tabs
| Tab | What it does |
|---|---|
| Overview | The Actions card (deploy, rebuild, start or stop, autodeploy), the service's containers and its domains. |
| Deployments | Production and Previews deployments with live build output and the webhook URL. Cancel queued ones, or Kill build for one in progress. |
| Logs | Per-service logs. |
| Metrics | Per-service metrics. |
| Settings | Source, 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:
services:
app:
env_file:
- .envservices:
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-recreateFor 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").
Persistent data
Bind mount (../files) | Named volume | |
|---|---|---|
| Direct host access | Yes | No |
| Managed by Docker | No | Yes |
| Volume backups | No | Yes |
| Best for | Config files, small datasets | Databases, large data |
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 --volumesand the data is unrecoverable. It has no effect on Stack services, sincedocker stack rmkeeps 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.
| Key | Goes to |
|---|---|
g | Overview |
d | Deployments |
l | Logs |
m | Metrics |
s | Settings |
e | Settings › Environment variables |
u | Settings › Domains |
b | Settings › Storage and backups |
a | Settings › Command and import |
