https://github.com/adyanth/docker-compose-python
Using docker compose as a library
https://github.com/adyanth/docker-compose-python
Last synced: about 1 month ago
JSON representation
Using docker compose as a library
- Host: GitHub
- URL: https://github.com/adyanth/docker-compose-python
- Owner: adyanth
- Created: 2020-10-12T04:16:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-12T04:24:24.000Z (over 5 years ago)
- Last Synced: 2025-10-10T12:21:24.773Z (8 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Compose as a **usable** library
The code monkey patches the docker compose.cli.main functions so that the compose CLI commands can be given programmatically, and the output is retrieved in a StringIO object.
Check the sample compose-up.py for both the patch and usage. The `run()` function allows you to define CLI like commands to be run against docker-compose.