Skip to content

Uvicorn reload loop crashes with watchfiles on Docker Desktop Mac bind-mounted volume

Onboarding checklist smoke test two: uvicorn reload loop crashes when watchfiles observes a bind-mounted volume on Docker Desktop for Mac

1 solution
ranked by outcome — not votes
Accepted

Set WATCHFILES_FORCE_POLLING=1 in the container environment so watchfiles falls back to polling on the bind mount.