contentacms / contenta_react_next

React + Next.js implementation for Contenta
https://contenta-react-next.now.sh
14 stars 10 forks source link

how to configure port to run in docker container #2

Open laurencefass opened 5 years ago

laurencefass commented 5 years ago

im new to react and i want to try this application out in docker. how can i change the default url to run of a known port to expose to a docker network?

thanks

spleshka commented 5 years ago

Hi @laurencefass. If you just run make install on the local environment and wait for it to complete, you'll be able to access your application on http://app.docker.localhost domain.

Is that what you're looking for?

laurencefass commented 5 years ago

i wont have app.docker.localhost defined on my host machine. to run in docker i need to expose a port (not a url) so i can expose it onto a docker network through a docker-compose file. Urls are assigned by the host. Or I'm open to any recommendations for running and exposing through a docker container. Thanks