{"repo":"PDMLab/docker-compose","free":true,"listed":false,"github":"https://github.com/PDMLab/docker-compose","clone":"git clone https://github.com/PDMLab/docker-compose.git","description":"Manage Docker-Compose via Node.js","language":"TypeScript","stars":222,"topics":["docker","nodejs","docker-compose","devops-tools","testing-tools"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"Manage Docker-Compose via Node.js docker-compose is a small library that allows you to run docker-compose (which is still required) via Node.js. This is useful to bootstrap test environments. As of version 1.0, this library supports docker compose (v2, the docker \"compose\" plugin) by default. The docker-compose (v1) has been removed from recent releases of Docker Desktop and is no longer supported. However, you can still force the use of docker-compose by using the standanlone mode. Installation Documentation The documentation can be found here. Example Import for docker-compose You can also import only the required commands: Usage To start service containers based on the docker-compose.yml file in your current directory, just call compose.upAll like this: Start specific services using compose.upMany : Or start a single service with compose.upOne : To execute command inside a running container To list the containers for a compose project The --format json command option can be used to get a better state support: Standalone mode While the docker-compose executable is no longer part of a default docker installation, it is still possible to download its binary standalone. This is useful for example when building docker images, avoiding the need to install the whole docker stack. To use a standalone binary, you can set the executable.standalone option to true . You can also set the executablePath option to the path of the docker-compose binary. Known issues During testing we noti","default_branch":null,"files":null,"tree":[],"storefront":"/r/PDMLab","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/PDMLab/docker-compose/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}