use ./docker-compose.yml if it exists for dc

This commit is contained in:
hophacker 2019-07-24 10:50:11 +08:00
parent 96c161f12d
commit 1ce3567307

View File

@ -271,6 +271,8 @@ function rgm {
function dc {
if [ -e ./docker-compose-dev.yml ]; then
docker_file_path=./docker-compose-dev.yml
elif [ -e ./docker-compose.yml ]; then
docker_file_path=./docker-compose.yml
else
docker_file_path=~/Projects/paiyou-hub/docker-compose-dev.yml
fi