A command line utility to manage subsets of services in compose.yaml files.
Project description
🐳 subcompose
A command line utility to manage subsets of services in compose.yaml files.
Features
- 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
Overview
SubCompose helps you orchestrate, validate, and manage complex Docker Compose setups by grouping services and providing advanced CLI operations.
Quick Installation
You can install SubCompose directly from the GitHub releases or from PyPI.
Install from GitHub releases
pip install https://github.com/doraemoncito/subcompose/archive/refs/tags/vX.Y.Z.tar.gz
Replace vX.Y.Z with the desired release version.
Install from PyPI
pip install subcompose
After installation, you can run SubCompose as a command:
subcompose --help
Developer Instructions: The following section is for contributors and developers who want to install from source or run tests.
Local Installation from Source
-
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
Usage
To see available commands:
subcompose --help
Example Compose File
An example Compose file is provided at examples/compose.yaml. You can use this as a template for your own projects.
License
This project is licensed under the GPL v3. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file subcompose-1.0.0.tar.gz.
File metadata
- Download URL: subcompose-1.0.0.tar.gz
- Upload date:
- Size: 24.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.4 CPython/3.12.10 Darwin/25.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24673ee45b122a34cdd253041c5c0c028dc074bac3a209e53ad2a945d17c115d
|
|
| MD5 |
6cd7a145e3b02f6f96752f5075200e4a
|
|
| BLAKE2b-256 |
5d5e4dde8986f2e507e2f3d72d177c6a147f42bd7e61c0d0ae8e85b7987312c1
|
File details
Details for the file subcompose-1.0.0-py3-none-any.whl.
File metadata
- Download URL: subcompose-1.0.0-py3-none-any.whl
- Upload date:
- Size: 31.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.4 CPython/3.12.10 Darwin/25.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3326150e9a8028150a27cd592992df4a30a298e9e03010c9c0dd86391af48b7
|
|
| MD5 |
d16ffacc4477d4e5ee5c0a3c251ad139
|
|
| BLAKE2b-256 |
054e996800a6f4a9b4c0ee1eb79c8d967268f2d1a53f5e1551e1b868ba7570e3
|