Skip to content

How to mount a custom directory into my project? #5520

Answered by stasadev
marcagrio asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @marcagrio.

You can define a custom mount point as described here https://stackoverflow.com/a/57432155

I have set up a hook to do a database dump on post start, but I want to move this to a shell script outside of my project so I can share it between DDEV projects.

By the way you can communicate with another project's database using ddev-<projectname>-db as the hostname of the other project.
https://ddev.readthedocs.io/en/latest/users/usage/faq/#can-different-projects-communicate-with-each-other

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@marcagrio
Comment options

Answer selected by marcagrio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants