mirror of https://github.com/kianby/dotfiles
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
379 B
Cheetah
11 lines
379 B
Cheetah
# docker
|
|
if hash docker 2>/dev/null; then
|
|
export DOCKER_COMPOSE_BIN='{{ .docker_compose_command }}'
|
|
docker-compose ()
|
|
{
|
|
$DOCKER_COMPOSE_BIN $(find -name 'docker-compose*.yml' -type f -printf '%p\t%d\n' 2>/dev/null | sort -n -k2 | cut -f 1 | awk '{print "-f "$0}') $@
|
|
}
|
|
alias dockup='docker-compose up -d'
|
|
alias dockdown='docker-compose down'
|
|
fi
|