alias dapp='docker-compose exec app'

Going through things I changed in my workflow this year, I saw this alias. I use it very frequently to run commands in the Docker container named app.

Most projects I work on have their main component in such a container named app, so this makes a nice shortcut to do anything development related in the container. (And it replaced my dssh script for the most part.)

Some examples:

# Install dependencies in a node project
dapp npm install

# Update dependencies in a a PHP project
dapp composer update