I use drush rsync
and other things that interact with my drush aliases, and so need to have my drush aliases in the ddev web container. How can I do that? It would be a shame to copy them all in there or have them in my project.
Asked
Active
Viewed 817 times
1 Answers
5
For drush aliases stored in ~/.drush/aliases on the host, you can add a .ddev/docker-compose.drush.yaml with these contents:
version: '3.6'
services:
web:
volumes:
- "$HOME/.drush/aliases:/home/.drush/aliases"
Then run ddev start
and your aliases will be in the web container's user home.

rfay
- 9,963
- 1
- 47
- 89