mirror of https://github.com/kianby/dotfiles
alias docker if needed
parent
2e4a47dd61
commit
358b6c87c7
@ -1,8 +1,10 @@
|
|||||||
export DOCKER_COMPOSE_BIN='{{ .docker_compose_command }}'
|
# docker
|
||||||
docker-compose ()
|
if docker tig 2>/dev/null; then
|
||||||
{
|
export DOCKER_COMPOSE_BIN='{{ .docker_compose_command }}'
|
||||||
$DOCKER_COMPOSE_BIN $(find -name 'docker-compose*.yml' -type f -perm -u+x -printf '%p\t%d\n' 2>/dev/null | sort -n -k2 | cut -f 1 | awk '{print "-f "$0}') $@
|
docker-compose ()
|
||||||
}
|
{
|
||||||
alias dcup='docker-compose --env-file .env up -d'
|
$DOCKER_COMPOSE_BIN $(find -name 'docker-compose*.yml' -type f -perm -u+x -printf '%p\t%d\n' 2>/dev/null | sort -n -k2 | cut -f 1 | awk '{print "-f "$0}') $@
|
||||||
alias dcdown='docker-compose --env-file .env down'
|
}
|
||||||
|
alias dcup='docker-compose --env-file .env up -d'
|
||||||
|
alias dcdown='docker-compose --env-file .env down'
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue