TheDocumentation 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 command orchestrates multi-container applications defined in a minibox-compose.yaml file. It reads the service graph, resolves dependencies using a topological sort (DAG), builds images that have a build context, and manages the full lifecycle of every service in the project.
Overview
Path to the compose file. Defaults to
minibox-compose.yaml in the current directory.Example minibox-compose.yaml
Services with a
build key have their image built automatically by compose before starting. The image is tagged as <project>-<service> for internal use.up
Build all service images (ifbuild is defined) and start all containers in dependency order.
up resolves the depends_on graph and starts services in topological waves — services with no dependencies start first, then their dependents. Service discovery is wired automatically: container IPs are injected into each container’s /etc/hosts so services can reach each other by name (e.g. db resolves to its container IP).
down
Stop and remove all containers belonging to the project.down sends SIGTERM to all project containers, waits for them to exit, then removes their container records and data directories. It is the inverse of up.
ps
List all running containers that belong to the current project.logs
Stream multiplexed log output from all services in the project.build
Build all service images that have abuild context defined, without starting any containers.
POST /containers/build for each service with a build context.
start
Build all service images (ifbuild is defined) and start all containers in dependency order.
start behaves identically to up — it resolves the depends_on graph, builds any services with a build context, and starts all containers. Use up or start interchangeably to bring the project online.
stop
Stop all running containers in the project without removing them.start can bring them back up.
restart
Stop and then start all services in the project.compose stop followed by compose start. Useful for applying configuration changes without a full down / up cycle.
Typical Compose Session
Write your compose file
Create
minibox-compose.yaml in your project root with services, build, depends_on, ports, and environment fields.Build and start all services
Service Discovery
When a container starts as part of a compose project, the daemon:- Fetches all other running containers in the same project.
- Builds a hosts-file mapping service names and container IDs to their assigned IPs.
- Writes the mapping to
rootfs/etc/hostsbefore the container’s PID 1 executes.
web service can connect to db:5432 and it will resolve to the database container’s 172.19.0.x address.
Database Mode in Compose
Setdb_mode: true on a service to apply production-safe database defaults:
/dev/shmsized at 256 MB (configurable)oom_score_adjof-900(last to be OOM-killed)- A persistent named volume under
DataRoot/volumes/that survives orchestration cycles - Capability retention so the DB entrypoint can
chowndata directories on first boot