Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wizcorp/docker-blend
NODE_ENV + compose + service
https://github.com/wizcorp/docker-blend
configuration configuration-management docker nodejs
Last synced: 10 days ago
JSON representation
NODE_ENV + compose + service
- Host: GitHub
- URL: https://github.com/wizcorp/docker-blend
- Owner: Wizcorp
- Created: 2018-01-05T06:38:39.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-18T03:35:06.000Z (about 7 years ago)
- Last Synced: 2024-12-06T05:07:01.889Z (2 months ago)
- Topics: configuration, configuration-management, docker, nodejs
- Language: JavaScript
- Size: 63.5 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# ![docker-blend](./logo.png)
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
```shell
npm install --save-dev docker-blend
```## Usage
> project structure
```plaintext
.
├── docker-compose
│ ├── development.yml
│ └── production.yml
├── docker-compose.yml
├── Dockerfile
└── package.json
```> package.json
```json
{
"scripts": {
"docker": "docker-blend"
}
}
```From there, simply replace `docker-compose` with `npm run docker compose`, and
`docker stack` with `npm run docker stack`.```shell
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- [Source](https://logomakr.com/8EPEyE)
## License
MIT. [See License](./License.md)