Hot reload not working in Docker dev setup on Windows (WSL2) #1109

Closed
opened 2026-04-05 18:19:18 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Pallavikumarimdb on 8/6/2025

Description

When running the project on Windows, file changes in the local filesystem are not being detected properly, which causes issues with hot reload or other file-watching mechanisms.

Development Guide Says:
Image

Environment

  • Host OS: Windows 10
  • WSL2/Docker Backend: Docker Desktop using WSL2
  • App running via docker-compose

Cause

The problem is with WSL2 or native file system watchers inside Docker containers on Windows hosts.

📝 Suggested Fix

Update the project's docker-compose.yml template or provide guidance in the Development Guide for Windows users to add the following environment variables:

- WATCHPACK_POLLING=true
- CHOKIDAR_USEPOLLING=true

It might slightly increase CPU usage, but for development only (not production), that’s fine.

*Originally created by @Pallavikumarimdb on 8/6/2025* ### Description When running the project on **Windows**, file changes in the local filesystem are not being detected properly, which causes issues with hot reload or other file-watching mechanisms. Development Guide Says: <img width="972" height="417" alt="Image" src="https://github.com/user-attachments/assets/3c72e759-baa0-47b8-9960-a6977361726b" /> ### Environment - **Host OS**: Windows 10 - **WSL2/Docker Backend**: Docker Desktop using WSL2 - App running via `docker-compose` ### Cause The problem is with WSL2 or native file system watchers inside Docker containers on Windows hosts. ### 📝 Suggested Fix Update the project's `docker-compose.yml` template or provide guidance in the Development Guide for Windows users to add the following environment variables: ```yaml - WATCHPACK_POLLING=true - CHOKIDAR_USEPOLLING=true ``` It might slightly increase CPU usage, but for development only (not production), that’s fine.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1109