I am using Docker to run acceptance tests. The website in production is fast and loads almost immediately. On my docker container, the a lot of time is just spent waiting:
The docker container Waiting (TTFB) time is about 5 seconds:
The production website's (TFFB) time is 200 ms.
I have tried to delegate the volumes in my DockerComposer file:
volumes:
- ./config/php.conf.ini:/usr/local/etc/php/php.ini:delegated
# Docker WordPress files will be placed at the root.
- .:/var/www/html:delegated
And the speed is still awful. An acceptance test that should take 3 seconds to run is taking about 20 seconds with Docker.
Why is there such a long waiting time with Docker? I love it but if this continues I am better off running MAMP. I LOVE Docker, if there is a way to improve this massive wait time, please pitch in.