Everything works fine, when you run npm run dev and visit http://localhost:3000.Run docker-compose up, and visit http://localhost:8000 to see the problem.
npm run dev
docker-compose up
/working
/not-working