New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.0 to 1.0.1

examples/compose.js

20

package.json
{
"name": "dockerode-compose",
"version": "1.0.0",
"description": "",
"main": "main.js",
"version": "1.0.1",
"description": "docker-compose in nodejs using dockerode",
"main": "./lib/compose.js",
"scripts": {

@@ -13,8 +13,16 @@ "test": "echo \"Error: no test specified\" && exit 1"

},
"author": "",
"license": "ISC",
"author": "Pedro Dias <petermdias@gmail.com>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/apocas/dockerode-compose/issues"
},
"homepage": "https://github.com/apocas/dockerode-compose#readme"
"keywords": [
"docker",
"docker-compose"
],
"homepage": "https://github.com/apocas/dockerode-compose#readme",
"dependencies": {
"dockerode": "^3.2.1",
"js-yaml": "^4.0.0"
}
}

@@ -1,1 +0,46 @@

# dockerode-compose
# dockerode-compose
docker-compose in Node.js using [dockerode](https://github.com/apocas/dockerode).
Work in progress...
## Installation
`npm install dockerode-compose`
### Getting started
To use `dockerode` first you need to instantiate it:
``` js
var Dockerode = require('dockerode');
var DockerodeCompose = require('dockerode-compose');
var docker = new Dockerode();
var compose = new DockerodeCompose(docker);
(async () => {
var state = await compose.compose('./test/wordpress.yml', 'wordpress');
console.log(state);
})();
```
## Tests
* `docker pull ubuntu:latest` to prepare your system for the tests.
* Tests are implemented using `mocha` and `chai`. Run them with `npm test`.
## Examples
Check the examples folder for more specific use cases examples.
## License
Pedro Dias - [@pedromdias](https://twitter.com/pedromdias)
Licensed under the Apache license, version 2.0 (the "license"); You may not use this file except in compliance with the license. You may obtain a copy of the license at:
http://www.apache.org/licenses/LICENSE-2.0.html
Unless required by applicable law or agreed to in writing, software distributed under the license is distributed on an "as is" basis, without warranties or conditions of any kind, either express or implied. See the license for the specific language governing permissions and limitations under the license.
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