contenta_react_next icon indicating copy to clipboard operation
contenta_react_next copied to clipboard

how to configure port to run in docker container

Open laurencefass opened this issue 6 years ago • 2 comments

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

laurencefass avatar Mar 29 '19 11:03 laurencefass

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?

spleshka avatar Mar 29 '19 15:03 spleshka

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

laurencefass avatar Apr 01 '19 10:04 laurencefass