Stack Management
dockmesh manages stacks — groups of containers defined by a Docker Compose file. Each stack lives on disk as a directory containing compose.yaml and an optional .env file. The filesystem is always the source of truth; the database only stores metadata and runtime state.
Creating a stack
Section titled “Creating a stack”From the UI:
- Stacks → New stack
- Pick a host from the dropdown
- Enter a name and paste (or edit) your
compose.yaml - Click Create to save to disk, or Create & Deploy to start immediately
Stacks are written to <DOCKMESH_STACKS_ROOT>/<host>/<name>/compose.yaml.
Import from docker run
Section titled “Import from docker run”Already have a container running? Paste the docker run command into New stack → Import from docker run and dockmesh generates the equivalent compose.yaml — including volumes, networks, env vars, labels, restart policies, and port mappings.
Deploy, stop, restart
Section titled “Deploy, stop, restart”The detail page exposes:
- Deploy — pulls images, creates/updates containers, applies compose changes
- Stop — graceful stop with configurable timeout
- Restart — stop then deploy
- Pull — re-pulls images without redeploying
- Remove — stops containers and removes them (volumes kept by default)
Every action streams live logs into the UI so you see exactly what Compose is doing.
Editing a stack
Section titled “Editing a stack”The compose.yaml editor is a full Monaco editor with YAML validation, auto-completion of Compose v3 schema, and Git-style diff against the last deployed version. Changes are saved to disk; the deploy button applies them.
Git integration
Section titled “Git integration”Point a stack at a Git repo and dockmesh will pull updates on a schedule or via webhook. Your CI can git push to trigger redeploys — no custom webhook code required.
Stack templates
Section titled “Stack templates”Save any stack as a template, then spin up copies on other hosts with a single click. Templates support variable substitution, so a postgres template can be reused across environments with different credentials and volume names.
See also
Section titled “See also”- Smart Scaling — horizontal scaling and auto-scaling rules
- Stack Migration — move stacks between hosts
- Multi-Host — manage stacks across a fleet