Skip to content

Instantly share code, notes, and snippets.

@rhysawilliams2010
Last active July 24, 2018 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhysawilliams2010/6324196804eca285560c5e9764bff9a3 to your computer and use it in GitHub Desktop.
Save rhysawilliams2010/6324196804eca285560c5e9764bff9a3 to your computer and use it in GitHub Desktop.
docker-compose aliases
alias dcu='docker-compose up'
alias dcs='docker-compose stop'
alias dcl='docker-compose logs --tail=all app'
alias dce='docker-compose exec app'
alias dcb='docker-compose exec app /bin/bash'
alias dcr='docker-compose run --rm app'
alias dcjest='docker-compose exec app yarn jest'
alias dcrspec='docker-compose exec app env RAILS_ENV=test bundle exec rspec'
alias dctest='docker-compose exec app env RAILS_ENV=test bundle exec rake test'
@rhysawilliams2010
Copy link
Author

Save this file to ~/ and add . ~/.zsh_aliases to your ~/.zsgrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment