A command line utility to manage subsets of services in compose.yaml files.
- Manage and run subsets of services from a Docker Compose file
- Group services for flexible orchestration
- Validate and preview Compose configurations
- Delete containers and images by group
- CLI and Python API usage
- Example Compose file included
SubCompose helps you orchestrate, validate, and manage complex Docker Compose setups by grouping services and providing advanced CLI operations.
You can install SubCompose directly from the GitHub releases or from PyPI.
pip install https://github.com/doraemoncito/subcompose/archive/refs/tags/vX.Y.Z.tar.gzReplace vX.Y.Z with the desired release version.
pip install subcomposeAfter installation, you can run SubCompose as a command:
subcompose --helpDeveloper Instructions: The following section is for contributors and developers who want to install from source or run tests.
-
Install poetry if you don't have it already. The officially recommended approach is via the installer script which uses Python itself and works on macOS, Linux, and Windows:
python3 -m pip install --user pipx python3 -m pipx ensurepath pipx install poetry
This method has several advantages:
- Isolated install (no dependency conflicts)
- Uses your system Python
- Easy upgrades
Upgrade later with:
pipx upgrade poetry
-
Install subcompose using Poetry:
poetry install
To see available commands:
subcompose --helpAn example Compose file is provided at examples/compose.yaml. You can use this as a template for your own projects.
This project is licensed under the GPL v3. See the LICENSE file for details.