Skip to content

Instantly share code, notes, and snippets.

@maxcnunes
Last active August 27, 2023 15:11
Show Gist options
  • Save maxcnunes/7b5eae9cb884f126a70f to your computer and use it in GitHub Desktop.
Save maxcnunes/7b5eae9cb884f126a70f to your computer and use it in GitHub Desktop.
Aliases for docker-compose
alias c='docker-compose'
alias cb='docker-compose build'
alias cup='docker-compose up'
alias cr='docker-compose run --service-ports --rm'
alias crl='docker-compose run --service-ports --rm local'
alias crd='docker-compose run --service-ports --rm develop'
alias crt='docker-compose run --rm test'
alias crp='docker-compose run --rm provision'
alias crci='docker-compose run --rm ci'
alias crwt='docker-compose run --rm watchtest'
alias cps='docker-compose ps'
alias clogs='docker-compose logs'
crm(){
docker-compose stop $1
docker-compose rm --force $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment