dock_sprout

Crates.iodock_sprout
lib.rsdock_sprout
version1.0.3
created_at2025-01-31 23:31:44.330576+00
updated_at2025-02-05 02:09:14.401531+00
descriptionRust CLI tool to bring up or down multiple docker-compose files from a parent directory.
homepagehttps://github.com/Thompson-Jason/DockSprout
repositoryhttps://github.com/Thompson-Jason/DockSprout
max_upload_size
id1537933
size42,325
(Thompson-Jason)

documentation

README

DockSprout 🌱🐳

A simple CLI tool to bring up Docker containers from multiple docker-compose.yml files in subdirectories.


📌 Features

  • Scans a central directory for docker-compose.yml files.
  • Recursively searches subdirectories for Docker Compose projects.
  • Automatically brings up (or down) all discovered containers using docker compose.
  • Use a .sprout-ignorefile to ignore certain directories of containers you don't want brought up.
  • A lightweight and convenient automation tool for managing multiple Docker services.

🛠 Installation

  1. Install Rust toolchain https://www.rust-lang.org/tools/install
  2. Run cargo install dock_sprout

🔹 Homebrew

brew install Thompson-Jason/tap/dock_sprout

🔹 Build from Source

git clone https://github.com/Thompson-Jason/DockSprout.git
cd DockSprout
cargo build --release

🚀 Usage

sprout <root-directory> <docker-compose-direction>

🔹 Example:

sprout ~/my-docker-projects up

─── my-docker-projects
    ├── LubeLogger/
    │   └── docker-compose.yml
    ├── ntfy/
    │   └── docker-compose.yaml
    ├── Portainer/
    │    ├── docker-compose.yaml
    │    └──.conf
    └── .sprout-ignore

This will bring up all three containers separately allowing for the esability of one command to bring all of your containers up and none of the downsides of a mono compose file.

Commit count: 44

cargo fmt