compose-rs
compose-rs is a Rust library designed to manage Docker Compose environments programmatically. It provides a straightforward API for executing common Docker Compose commands directly from Rust code.
Features
- Easy Setup: Quickly configure your Docker Compose path and start managing containers.
- Command Execution: Support for basic Docker Compose commands like
up
,down
,ps
, andstats
. - Stream Stats: Stream statistics of services in real-time.
Installation
Add to your Cargo.toml
:
[dependencies]
+ compose-rs = "0.0.3"
Quick Start
This example demonstrates how to bring up a Docker Compose environment and monitor the stats of running services in real-time.
use ;
Documentation
For detailed API documentation and advanced usage, please refer to the generated documentation.
Contributing
Contributions are welcome! Please feel free to contribute by opening issues or submitting pull requests.
License
compose-rs is licensed under the MIT license. See LICENSE for details.