Tzook Bar Noy
Tzook Bar Noy

Reputation: 11677

docker php, nginx is super slow with wordpress

I have create a simple docker stack: php, nginx, mariadb

each one has its own container.

Now I run on this stack a simple wordpress app, but the site loads SUPER SLOW ~ 4-5 sec

I looked through

docker stats

and stats looks good max 15% cpu usage, and memory barely getting to 5%

I have all the docker-compose and dockerfiles here:

https://gist.github.com/tzookb/f4a868ae06a474676afbb4fce8055902

would be happy to get any ideas on why this is so slow.

** docker on macbook pro

Upvotes: 4

Views: 4644

Answers (1)

Ivan Kvasnica
Ivan Kvasnica

Reputation: 806

I was trying out Docker on my Macbook Air recently and it is superslow. Are you mounting a folder with Wordpress to Docker? Then that's the problem.

Mounting drives on Docker seem to be an issue on OS X. You can find a tons of complaining on this around, for example this thread: https://forums.docker.com/t/file-access-in-mounted-volumes-extremely-slow-cpu-bound/8076

The only thing I recommend is to stop using Docker, it's not a reliable option on Mac right now.

Upvotes: 4

Related Questions