Access ddev project database from separate docker container? #5418
Unanswered
juppwerner
asked this question in
Q&A
Replies: 1 comment 2 replies
-
If you're running another docker container, you'll have to have it on the For communicating inside the docker network: https://ddev.readthedocs.io/en/latest/users/usage/faq/#can-different-projects-communicate-with-each-other You could also install the schema crawler in the web or db containers, etc. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have running a ddev project including a MySQL database successfully.
I want to get the schema documentation of the database using another docker image from my host like this:
$ docker run \
--mount type=bind,source="$(pwd)",target=/home/schcrwlr/share \
--rm -it \
schemacrawler/schemacrawler \
/opt/schemacrawler/bin/schemacrawler.sh \
--server=mysql \
--host=localhost \
--port=59002 \
--database=db
--user=db \
--password=db \
--info-level=standard \
--command script \
--title "MyDatabase Schema" \
--script-language python \
--script plantuml.py
(similar to: https://dev.to/sualeh/generate-good-looking-plantuml-diagrams-for-your-database-3g19)
However the output says:
I used the DB port as printed using
ddev describe
. I also tried host=127.0.0.1, and ddev-myproject-db, same result.I also tried user/password: root/root.
Any hints appreciated!
Thank you.
regards,
Joachim
Beta Was this translation helpful? Give feedback.
All reactions