docker php, nginx is super slow with wordpress

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

each one has its own container.

  • Connection error for MongoDb replica-set using docker-compose
  • Azure App Service + Docker Autodeploy?
  • docker-compose swarm: force containers to run on specific hosts
  • how to redirect no-www to www under jwilder/nginx-proxy?
  • Docker swarm constantly shuts down containers
  • docker build error (apt-utils is not installed, cannot remove '/var/lib/apt/lists': Directory not empty)
  • 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:

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

    ** docker on macbook pro

  • Emulate Bluetooth LE Adapter for Acceptance Testing
  • Unable to access the internet from Kubernetes containers
  • Installing bundler within Jenkins docker image
  • How to delete logs in IBM Containers service (BlueMix)
  • cannot generate a service account token in kubernetes v1
  • Docker - Failed to connect to localhost port 4000: Connection refused
  • One Solution collect form web for “docker php, nginx is super slow with wordpress”

    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:

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

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.