Skip to main content

A command line utility to manage subsets of services in compose.yaml files.

Project description

🐳 subcompose

Python Version PyPI Version License: GPL v3 Documentation GitHub

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

  1. 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
    
  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

subcompose-1.0.0.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

subcompose-1.0.0-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

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

Hashes for subcompose-1.0.0.tar.gz
Algorithm Hash digest
SHA256 24673ee45b122a34cdd253041c5c0c028dc074bac3a209e53ad2a945d17c115d
MD5 6cd7a145e3b02f6f96752f5075200e4a
BLAKE2b-256 5d5e4dde8986f2e507e2f3d72d177c6a147f42bd7e61c0d0ae8e85b7987312c1

See more details on using hashes here.

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

Hashes for subcompose-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3326150e9a8028150a27cd592992df4a30a298e9e03010c9c0dd86391af48b7
MD5 d16ffacc4477d4e5ee5c0a3c251ad139
BLAKE2b-256 054e996800a6f4a9b4c0ee1eb79c8d967268f2d1a53f5e1551e1b868ba7570e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page