Skip to content

Orche

A Python orchestrator for Docker Compose stacks.

PyPI Python License

Orche lets you define your Docker Compose workflow as Python code — with full control over service ordering, conditional logic, pre/post hooks, and custom commands.

Quick Install

pip install orche

Minimal Example

orchefile.py
from orche import Stack

stack = Stack(compose_files=["docker-compose.yml"])

@stack.commands.up
def up() -> None:
    stack.build().up()

@stack.commands.down
def down() -> None:
    stack.down()
orche up
orche down