Use this to avoid to explicitly provide the compose file location to docker-compose if you don't use the default (./docker-compose.yml
). This tool search for a docker compose file at predefined locations, or using the DCP_COMPOSE
or the .dcp
file in the working directory. It can also be used as a lazy/short alias for docker-compose.
You can use it either as a function by putting it into ~/.bashrc
, or as a shell script.
curl -Lo /usr/local/bin/dcp https://gist.github.com/vincepare/fb6aeb4f99ff19b474c00f4e61699113/raw/dcp.sh && chmod +x /usr/local/bin/dcp
OR :
wget -O /usr/local/bin/dcp https://gist.github.com/vincepare/fb6aeb4f99ff19b474c00f4e61699113/raw/dcp.sh && chmod +x /usr/local/bin/dcp
Start a docker app :
dcp up -d
Stop a docker app :
dcp stop