DEV Community

Discussion on: Dockerize a React app with Node.js backend connected to MongoDb

Collapse
 
workmap profile image
Tyler McCracken

Hi Andrei, 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