2.0.2 • Published 5 years ago

flavored-docker-compose-cli v2.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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

This module is deprecated. Use flavored-docker-compose instead.

flavored-docker-compose-cli

Run docker-compose with environment set up by Flavors.

Install

$ npm install -g flavored-docker-compose-cli

Usage

CLI

Define Flavors options in flavorsOptions.js file, for example:

module.exports = {
    configName: process.env.configName || 'default',
    workingDir: __dirname
};

Run flavored-docker-compose in directory where this file is located and docker-compose will be executed with environment variables set up by values from configuration files loaded by Flavors.

Node.js module

const dockerCompose = require('flavored-docker-compose-cli')(flavorsOptions);
const config = dockerCompose.config; // configuration loaded by Flavors
dockerCompose.run(); // run docker-compose

Maintainers

License

See the LICENSE file for details.