loading...

re: Dockerize a React app with Node.js backend connected to MongoDb VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Is live reload works in case when uses port 3000 and I'm changing files locally ?
 

I think, it should not work. Because we didnt map our local files with files in docker. We need to make volumes for that.

 

A post explaining a bit more about Docker volumes would be welcome too. :)

Hi Stanley, for live updates, I changed my 'ui' service in my docker-compose to:
ui:
build: ./ui
ports:
- '3000:3000'
depends_on:
- api
volumes:
- ./ui/src/:/usr/src/app/src
stdin_open: true

Some comments have been hidden by the post's author - find out more

Code of Conduct Report abuse