Hot loading with Docker containers

Hello,

I am taking the Docker course, but hot loading never seems to work for me. I am using Windows 10 with Docker Desktop.

I have mapped the appropriate volume directory
docker run -d -p 5001:3000 -v %cd%:/app react-app-20231027

Even in docker-compose, the hot loading never works and my docker compose file is like this:
version: “3.8”
services:
web:
build: ./frontend
ports:
- 3000:3000
api:
build: ./backend
ports:
- 3001:3001
environment:
- DB_URL=mongodb://db/vidly
volumes:
- ./backend:/app
db:
image: mongo:4.0-xenial
ports:
- 27017:27017
volumes:
- vidly:/data/db

volumes:
vidly:

However, none of the hot loading attempts such as changing verbiage in index.js won’t reflect in the content displayed by the browser.