flavored-docker-compose

2.2.1 • Public • Published

npm Build Status David semantic-release Join the chat at https://gitter.im/flavors-js/flavors

flavored-docker-compose

docker-compose plugin for Flavors CLI.

Adds to loaded configuration dockerCompose property containing object with the following properties:

  • files: array containing docker-compose.yml file paths loaded from configuration tree; passed to docker-compose with multiple -f options;
  • projectName: passed to docker-compose with -p option;
  • command: path to custom docker-compose executable.

Install

$ npm install --save-dev flavors flavored-docker-compose

Usage

You can pass it as a plugin to flavors CLI and specify additional flavors options:

$ npx flavors run [flavors options...] -p flavored-docker-compose [docker-compose options...] 

Or run directly with default flavors options:

$ npx flavored-docker-compose [docker-compose options...]

Or use it with flavors command runner:

const runner = require('flavors/runner');
runner({ plugin: require('flavored-docker-compose'), args: [/* docker-compose args, i.e. "up" */]}, configName, options);

Maintainers

License

See the LICENSE file for details.

Package Sidebar

Install

npm i flavored-docker-compose

Weekly Downloads

1

Version

2.2.1

License

MIT

Unpacked Size

5.99 kB

Total Files

5

Last publish

Collaborators

  • mxl