Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dockerode-compose

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dockerode-compose - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

compose.js

11

package.json
{
"name": "dockerode-compose",
"version": "1.0.1",
"version": "1.0.2",
"description": "docker-compose in nodejs using dockerode",
"main": "./lib/compose.js",
"main": "./compose.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "./node_modules/mocha/bin/mocha -R spec --exit"
},

@@ -26,3 +26,8 @@ "repository": {

"js-yaml": "^4.0.0"
},
"devDependencies": {
"chai": "~4.2.0",
"memorystream": "~0.3.0",
"mocha": "^7.1.0"
}
}
# dockerode-compose
docker-compose in Node.js using [dockerode](https://github.com/apocas/dockerode).
`docker-compose` in Node.js using [dockerode](https://github.com/apocas/dockerode).
Everything is executed programmatically using `dockerode`, consequently Docker's API.
Work in progress...
Wordpress example builds successfully.
### ToDo:
* HostConfig (and other spec) needs to be finished.
* User friendly functions (partial deploys, etc) needs to be implemented.
## Installation

@@ -14,3 +22,3 @@

To use `dockerode` first you need to instantiate it:
To use `dockerode-compose` first you need to instantiate it:

@@ -25,3 +33,3 @@ ``` js

(async () => {
var state = await compose.compose('./test/wordpress.yml', 'wordpress');
var state = await compose.up('./test/wordpress.yml', 'wordpress');
console.log(state);

@@ -31,5 +39,9 @@ })();

## Documentation
- compose.up(file, project_name)
- compose.pull(service)
## Tests
* `docker pull ubuntu:latest` to prepare your system for the tests.
* Tests are implemented using `mocha` and `chai`. Run them with `npm test`.

@@ -36,0 +48,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc