directus-labs / directus-template-cli

Apply "templates" to a new, empty Directus project.
MIT License
88 stars 15 forks source link

Update README.md #24

Closed rowild closed 1 year ago

rowild commented 1 year ago

I thought it might be helpful to add some hints for the usage with Docker? It did cost me some time to figure this out.

Thank you! :-)

joggienl commented 1 year ago

You do not have to run the directus-template-cli command from inside the container. The cli script is built to be agnostic to the environment, it requires nodejs to run (hence npx).

If the docker host is not reachable to the cli script, there might be something off to your docker environment. Are you able to reach the Directus instance from the browser? Exposing the Directus port is important for this.