Minibox Compose lets you define, build, and run multi-container applications from a singleDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/chaitu426/minibox/llms.txt
Use this file to discover all available pages before exploring further.
minibox-compose.yaml file. With one command every service is created, networked, and started in the correct order — no manual sequencing required.
Quick Start
The example below wires a Redis store to an application container. Theapp service declares depends_on: [db], so Compose guarantees Redis is running before the application process starts.
Start the project
app image from the local MiniBox file, pulls redis:latest, resolves the dependency graph, and starts both containers.Compose Subcommands
Minibox Compose exposes eight subcommands that map directly to the container lifecycle.compose up
Builds images (when
build is set), creates containers, and starts all services in dependency order. Accepts -f <file> to use an alternate compose file.compose down
Stops and removes every container in the project. Accepts
-f <file> to target a specific compose file.compose start
Starts all services in the project. Equivalent to
up — builds and starts containers in dependency order.compose stop
Stops all running containers without removing them, preserving state for a future
start.compose restart
Restarts all services (equivalent to
down followed by up).compose build
Builds images for every service that defines a
build context, without starting the containers.compose ps
Lists containers associated with the project. Accepts
-f <file> to filter by project name.compose logs
Streams multiplexed logs from all services with color-coded, per-service name prefixes.
DAG Dependency Resolution
Minibox Compose builds a Directed Acyclic Graph (DAG) from thedepends_on fields across all services. It then performs a topological sort to produce a safe startup sequence.
- Services with no dependencies start in the first batch.
- Each subsequent batch starts only after all services in the previous batch are running.
- Circular dependencies are rejected at parse time.
cache → api → worker.
Automated Builds
When a service specifies abuild path instead of (or alongside) an image, Compose automatically triggers POST /containers/build before running that service. The resulting image is tagged <project>-<service> for internal use.
The
build value must be a directory containing a MiniBox file. The build context path must fall under an allowed prefix — see Configuration for MINIBOX_BUILD_PREFIXES.Service Naming
Containers are named<project>-<service>, where project defaults to the current directory name when the name field is omitted from the compose file.
| Compose field | Container name |
|---|---|
name: shop + service api | shop-api |
(no name) + service worker | mydir-worker |
Architecture
The diagram below shows how the CLI orchestrator, daemon build API, and runtime backend collaborate during acompose up.
The CLI is purely an HTTP client — all heavy lifting (builds, namespace setup, networking, hosts injection) happens inside miniboxd.