Deploy a Docker Compose stack
Paste a docker-compose.yml or follow one in a Git repository, and LogiStack deploys every compose service as one stack with domains, volumes and logs.
A stack is a group of services created from one Docker Compose file. Each compose service becomes a LogiStack service that you can scale, give a domain and inspect on its own, while the stack lets you deploy, restart and edit them together. Use a stack when an app already ships a docker-compose.yml, or when you want several containers to move as one unit.
Two ways to create a stack
- Paste a file: you paste the compose file once. Edit it later from the stack's Compose tab.
- From a repository: LogiStack reads the file from a branch of a connected repository. Every push re-syncs the stack and rebuilds services that use
build:. This option appears when you have a GitHub, GitLab, Gitea or Bitbucket provider; an Any Git host over SSH provider can't serve a compose file.
Create a stack
Start a new service
Open the project and environment, select New service, choose Docker Compose and select Continue.
Provide the compose file
On Configure, under Compose file, choose Paste a file or From a repository.
- Paste a file: paste the YAML into Compose file. It needs a top-level
services:key. - From a repository: pick the Git provider, the Repository and the Branch, and enter the Compose file path from the repository root, such as
docker-compose.ymlordeploy/compose.yaml.
Optionally set a Service name for the stack. It defaults to stack.
Test the source
For a repository, Test the source checks that LogiStack can read the branch. A pasted file skips this step.
Review and deploy
Check the summary and select Create and deploy. If the file has parts LogiStack can't run, the error lists every one of them, so you can fix them all at once.
Check that it worked
The stack page opens with the toast "<name> is deploying" and the number of containers that start in dependency order.

The Overview tab lists each Container with its Status, CPU, Memory, where it is Reached at (a domain, an internal name:port, or Internal only) and when it was Deployed. Below are CPU by container, Memory by container and Recent deployments.
The Logs tab follows the output of All containers or one Container, over a time window you pick in Since.

A real compose example
This file runs Plausible Analytics with its PostgreSQL and ClickHouse databases:
services:
plausible:
image: ghcr.io/plausible/community-edition:v3.1
ports: ["8000"]
environment:
BASE_URL: https://stats.example.com
SECRET_KEY_BASE: ${SECRET_KEY_BASE:-change-me}
DATABASE_URL: postgres://postgres:postgres@plausible-db:5432/plausible
CLICKHOUSE_DATABASE_URL: http://clickhouse:8123/plausible
depends_on: [plausible-db, clickhouse]
plausible-db:
image: postgres:16.4
environment:
POSTGRES_PASSWORD: postgres
volumes: ["db-data:/var/lib/postgresql/data"]
clickhouse:
image: clickhouse/clickhouse-server:25.8-alpine
volumes: ["event-data:/var/lib/clickhouse"]
volumes:
db-data: {}
event-data: {}What LogiStack does with it:
plausible,plausible-dbandclickhousebecome three services. They reach each other by those names, soplausible-db:5432andclickhouse:8123work unchanged.postgres:16.4is an official database image with a pinned tag, soplausible-dbbecomes a managed database with backups and the database editor.depends_onsets the start order.db-dataandevent-databecome named volumes.${SECRET_KEY_BASE:-change-me}takes its default. Replace it by settingSECRET_KEY_BASEon theplausibleservice.
To keep a credential out of the compose file, reference a managed secret: SECRET_KEY_BASE: ${{ secrets.PLAUSIBLE_SECRET_KEY_BASE }}. The service stores the expression as a plain variable and resolves it at deploy time from the most specific secret of that name on its chain. See Use a secret inside a value.
After it runs, open the plausible container and add stats.example.com in its Domains tab, pointing at port 8000. See Domains.
What is converted
| Compose | In LogiStack |
|---|---|
services.<name> | One service named after it (lowercased), reachable by that name on the environment network |
image | The image, which must not be built from a variable |
Official postgres, mysql, mariadb, mongo images with a pinned tag | A managed database |
build | A Dockerfile build from the stack's repository (stacks from a repository only) |
environment, ${VAR:-default} | Service variables; a default is taken, any other unset variable is empty |
ports, expose | Container ports; a published port binds on the node (host mode) unless it says mode: ingress |
volumes (named, or a relative path) | A named volume; a relative bind like ./data becomes a volume named after its path |
depends_on | Start order |
command, entrypoint, healthcheck, user, cap_add, cap_drop, restart | The matching service settings |
mem_limit, cpus, deploy.resources | Resource limits |
stop_grace_period | The service's drain timeout, rounded up to whole seconds, at most 3600 |
Keys that don't change behavior, such as container_name, hostname, labels, logging, networks and x-* extensions, are accepted and ignored.
Limits
LogiStack refuses the file, and lists every reason, when it contains:
build:in a pasted file. Builds need a repository: create the stack From a repository instead.- A host path bind mount such as
/srv/data:/dataor~/data:/data. privileged: trueornetwork_mode. Swarm services can't run privileged.security_optother thanno-new-privileges, orlinkswith an alias.env_file.- Ports with a host IP or a range, such as
127.0.0.1:8080:80or3000-3005:3000-3005. tmpfsvolumes.- A volume shared by two services.
- A non-numeric
user, such asnode. Use1000:1000. - Top-level keys other than
services,volumes,networks,version,nameandx-*, for exampleconfigsorsecrets. - Two service names that collide once lowercased.
Domains are not read from the compose file. Add them per container once the stack runs.
Edit the compose file
Open the Compose tab
Open the stack and select Compose. Compose file shows the file last applied; Effective shows what LogiStack runs now, written as compose from each container's settings, with secrets shown as <secret> unless you can read secrets.

Edit and review
Select Edit, change the file, then select Review changes. The Review compose changes dialog lists each container as New, Changed or Removed.
Apply
Select Apply and deploy, or Keep editing. Services are matched by compose service name: new ones are created, removed ones deleted (their volumes are kept), and changed ones updated and redeployed. Settings you changed on a service since the last apply survive, because only what the file itself changed is written.
For a stack from a repository, push to the branch, or select Sync now on the Compose tab to read the file at the head of the branch, review the changes and apply them.
When a push brings a compose file LogiStack can't run, the stack keeps running the previous file and the stack page shows The last push was not applied above the tabs, with the commit, every reason from Limits that applies, and when it was pushed. In the environment's service list, the stack's row says Last push not applied. The notice stays until a later push, a sync or an edit on the Compose tab applies a file.
A pasted compose file can hold credentials, so the Compose file view shows only to members who can read secrets. The Effective view masks them.
Stack actions
The stack header has Stop all, Restart all and Deploy all.
- Stop all: every container scales to zero and its domains leave the proxy. Data, volumes and configuration stay.
- Restart all: each container's replicas are replaced on their current image, one at a time. No build runs.
- More actions › Delete stack…: removes its containers, their domains, variables and deployments. Type the stack name to confirm.
Deleting a stack cannot be undone.
Common problems
- "A compose file needs a top-level services: key": the pasted text isn't a compose file, or it's indented under another key.
<service>.volumes host path /srv/app: replace the host path with a named volume, likeapp-data:/srv/app.- The app can't reach its database: use the compose service name as the host (
plausible-db), notlocalhost. - "The last push was not applied": the compose file in that commit breaks one of the Limits. Fix the listed parts, then push again or select Sync now.
To preview a stack on every pull request, with its own domains and volumes, see Preview environments.
- A variable is empty:
${VAR}without a default is empty until you setVARon that service's Environment tab.
Deploy an app from a template
Deploy n8n, Plausible and over 500 other self-hosted apps from the LogiStack template catalog, with their databases, volumes and generated secrets.
Create a managed database
Create PostgreSQL, MySQL, MariaDB, MongoDB, Redis or libSQL databases on LogiStack with generated credentials, internal hostnames and connection strings.