title: Docker not detect changes with ReactJS
body: <p>I am running Docker on Windows 11.
  I have four services:</p>
  <ul>
  <li>NestJS (Backend)</li>
  <li>ReactJS (Frontend)</li>
  <li>Postgres (DB)</li>
  <li>PGAdmin (DB Manager)</li>
  </ul>
  <p>My backend detect changes correctly, but my frontend not detect changes.</p>
  <p>docker-compose.yml</p>
  <pre><code>version: &quot;3.8&quot;
  
  services:
    nginx:
      container_name: fortunesp_nginx
      image: nginx:latest
      volumes:
        - ./nginx/nginx.conf:/etc/nginx/nginx.conf
      ports:
        - &quot;80:80&quot;
      command: /bin/sh -c &quot;nginx -g 'daemon off;'&quot;
      networks:
        - shared-network
  
    app-prod:
      container_name: fortunesp_frontend
      image: fortunesp_frontend:1.0.0
      build:
        context: client
        dockerfile: Dockerfile
      depends_on:
        - api-prod
      environment:
        CHOKIDAR_USEPOLLING: &quot;true&quot;
      ports:
        - &quot;3000:3000&quot;
      networks:
        - shared-network
      volumes:
        - /usr/src/app/node_modules
        - ./client:/usr/src/app
  
    api-prod:
      container_name: fortunesp_backend
      image: fortunesp_backend:1.0.0
      build:
        context: server
        dockerfile: Dockerfile
      command: bash -c 'while !&lt;/dev/tcp/postgres/5432; do sleep 1; done; npm run start:dev'
      depends_on:
        - postgres
      environment:
        CHOKIDAR_USEPOLLING: &quot;true&quot;
      ports:
        - &quot;9000:9000&quot;
      networks:
        - shared-network
      restart: unless-stopped
      healthcheck:
        test: [&quot;CMD&quot;, &quot;curl&quot;, &quot;http://api-prod:9000&quot;]
        interval: 5s
        timeout: 15s
        retries: 6
      volumes:
        - ./server:/usr/src/api
        - /usr/src/api/node_modules/bcrypt/
  
    pgadmin:
      container_name: fortunesp_pgadmin
      image: dpage/pgadmin4
      environment:
        - PGADMIN_DEFAULT_EMAIL=root@admin.com
        - PGADMIN_DEFAULT_PASSWORD=123456
      ports:
        - &quot;5050:80&quot;
      networks:
        - shared-network
  
    postgres:
      container_name: fortunesp_postgres
      image: postgres:13
      environment:
        - POSTGRES_DB=fortunesp
        - POSTGRES_USER=root
        - POSTGRES_PASSWORD=123456
      ports:
        - '5432:5432'
      volumes:
        - ./postgres:/var/lib/postgresql/data
      healthcheck:
        test: [ &quot;CMD-SHELL&quot;, &quot;pg_isready -U $$POSTGRES_USER $$POSTGRES_DB&quot; ]
        interval: 5s
        timeout: 5s
        retries: 5
      networks:
        - shared-network
  
  networks:
    shared-network:
  
  volumes:
    postgres: {}
  </code></pre>
  <p>Dockerfile (client)</p>
  <pre><code>FROM node:14
  
  WORKDIR /usr/src/app
  
  COPY package.json .
  COPY package-lock.json .
  
  ENV NODE_PATH=/node_modules
  ENV PATH=$PATH:/node_modules/.bin
  
  RUN npm install
  
  COPY . .
  
  EXPOSE 3000
  CMD [&quot;npm&quot;, &quot;start&quot;]
  </code></pre>
  <p>I can't find the problem.
  Another thing I tried was to verify that in docker my file is being modified, and its correct, my file is modified successfully.
  The problem is that my console does not compile again when I modify my files.</p>
  <p>I am using react app create.
  Docker Desktop 4.6.0.
  Windows 11 Pro.</p>
  <p>Thank you.</p>