Slow performance on Symfony4

Hello,

I have a performance problem running Symfony4 framework on Docker. The simple skeleton project loads for at least 4 seconds.

Here is the repo with all the files and configurations: https://github.com/erikas-tranauskas/Symfony-ListingSite

I wonder if there is any way to make the shared files load faster? Or do I have to use extra tools like docker-sync?

Also, I allocated 4 GB memory and 2 GB of swap for Docker via Docker Desktop settings. Is that enough?

Docker version: 18.09.2
Docker Compose version: 1.23.2

Please tell me if I can provide any more details for this to be more clear.

Need some advice, thank you.