mdc

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

mdc

Manage a whole directory of Docker Compose projects with one command.

License CI Latest Release

If you keep many compose projects side by side, say one folder per service or per client, mdc saves you from cd-ing into each one. Run mdc up -d in the parent folder and every project starts together. You get one live view with a section per project and a progress bar per image.

~/stacks
├── api/compose.yaml
├── db/compose.yaml
└── monitoring/docker-compose.yml

mdc speaks the same commands and flags as docker compose. It adds the things you need once there are several projects: discovery, concurrency, merged tables and prefixed logs.

Requirements

  • A running Docker Engine. mdc uses your current Docker context, including DOCKER_HOST and DOCKER_CONTEXT.
  • An interactive terminal. mdc is built for people, not scripts, so it exits with an error if you pipe or redirect its output.

You don't need the docker compose plugin, because mdc includes Compose itself.

Install

# Homebrew
brew install aaronflorey/tap/mdc

# Go 1.26.10 or newer
go install github.com/aaronflorey/mdc@latest

Prebuilt binaries for Linux, macOS and Windows are on the releases page.

Check the install:

mdc version

Quick start

Go to the folder that contains your projects:

cd ~/stacks

See which projects mdc found:

mdc ls -a

You get one row per project. Projects that have never been started show as not created.

Start everything in the background:

mdc up -d

While images are pulled, each project has its own section with a progress bar per image. As each project finishes, its section shrinks to a single line. When all are done, a summary lists which projects succeeded, were skipped and failed.

See every container in one table:

mdc ps

Follow the logs of every project. Each line is prefixed with project/service. Press Ctrl-C to stop.

mdc logs -f

Stop and remove everything:

mdc down

Next steps

  • Usage guide: target one service across projects, control which folders are scanned, set defaults, and more.
  • Reference: discovery rules, global flags, configuration, commands, and exit codes.
  • Run mdc <command> --help for every flag of a command.

Project files

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
backend
Package backend adapts the compose SDK for running many projects at once.
Package backend adapts the compose SDK for running many projects at once.
cli
Package cli defines the mdc command tree.
Package cli defines the mdc command tree.
discover
Package discover finds the compose projects below a directory.
Package discover finds the compose projects below a directory.
runner
Package runner runs an operation across targets with bounded concurrency.
Package runner runs an operation across targets with bounded concurrency.
ui
Package ui renders mdc's interactive output: shared styles and the live progress view.
Package ui renders mdc's interactive output: shared styles and the live progress view.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL