Stupidly simple CLI tool that makes working with multiple compose files on regular basis a bit less tiresome.
sudo curl https://raw.githubusercontent.com/iScrE4m/mdcompose/master/mdcompose > /usr/local/bin/mdcompose && sudo chmod +x /usr/local/bin/mdcompose
When set up, instead of repeating:
docker-compose -f docker-compose.yaml -f docker-compose.local.yaml <command>
You can do:
mdcompose <command>
For mdcompose to know which compose files to use, you need a .mdcompose
file
within the folder, e.g.:
Example .mdcompose
docker-compose.yaml
docker-compose.local.yaml
docker-compose.personal.yaml
You can generate the file by using mdcompose init <file1> <file2>
(the default
compose file is added automatically).
More options to come soon!