Last active
April 6, 2018 12:09
-
-
Save daliborgogic/0b5b77e14f6b6b1897a4d6ad462bdc72 to your computer and use it in GitHub Desktop.
bash docker compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f ~/.bash_docker_compose ]; then | |
. ~/.bash_docker_compose | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias dcu='docker-compose -f docker-compose.yml up -d' | |
dcsf() { | |
docker-compose stop $1 | |
docker-compose rm --force $1 | |
} | |
dcr() { | |
docker-compose -f docker-compose.yml build $1 | |
docker-compose -f docker-compose.yml up -d $1 | |
} | |
dcl() { | |
docker-compose logs -f --tail="${1:-all}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment