docker-blend
v1.0.2
Published
NODE_ENV integration for docker-compose
Downloads
24
Maintainers
Readme
Environment-based docker-compose.yml
configuration management.
The goal of this tool is to simplify mixing and merging docker-compose
files based on the execution environment (essentially, NODE_ENV
).
This binary currently wraps:
- docker-compose
- docker stack
Installation
npm install --save-dev docker-blend
Usage
project structure
.
├── docker-compose
│ ├── development.yml
│ └── production.yml
├── docker-compose.yml
├── Dockerfile
└── package.json
package.json
{
"scripts": {
"docker": "docker-blend"
}
}
From there, simply replace docker-compose
with npm run docker compose
, and
docker stack
with npm run docker stack
.
npm run docker compose up -- -d
npm run docker compose ps
npm run docker stack deploy
docker-compose.yml
will always be loaded, and it will be merged with
docker-compose/${NODE_ENV}.yml
if an environment-specific file can be found.
Acknowledgements
Logo created with LogoMakr.com
License
MIT. See License