You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker-compose in Node.js using [dockerode](https://github.com/apocas/dockerode).
4
+
5
+
Work in progress...
6
+
7
+
## Installation
8
+
9
+
`npm install dockerode-compose`
10
+
11
+
12
+
### Getting started
13
+
14
+
To use `dockerode-compose` first you need to instantiate it:
15
+
16
+
```js
17
+
var Dockerode =require('dockerode');
18
+
var DockerodeCompose =require('dockerode-compose');
19
+
20
+
var docker =newDockerode();
21
+
var compose =newDockerodeCompose(docker);
22
+
23
+
(async () => {
24
+
var state =awaitcompose.compose('./test/wordpress.yml', 'wordpress');
25
+
console.log(state);
26
+
})();
27
+
```
28
+
29
+
## Tests
30
+
31
+
*`docker pull ubuntu:latest` to prepare your system for the tests.
32
+
* Tests are implemented using `mocha` and `chai`. Run them with `npm test`.
33
+
34
+
## Examples
35
+
36
+
Check the examples folder for more specific use cases examples.
37
+
38
+
## License
39
+
40
+
Pedro Dias - [@pedromdias](https://twitter.com/pedromdias)
41
+
42
+
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:
43
+
44
+
http://www.apache.org/licenses/LICENSE-2.0.html
45
+
46
+
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.
0 commit comments