Docker Community Forums

Share and learn in the Docker community.

Best practices - Dev environment with mount volume

Hello,

I need your experiences on docker to help me with my issue.
We try to migrate from vagrant/Virtualbox to only docker.

But I have some performance issue with my container and my mounted volume.

I can reproduce my environment easily on docker but my web site is very slow.

We need to develop and be able to see in live our change.

Here a part of my docker-compose.yml :

services:
        php:
          image: private-registry
          ports:
                - "80:80"
                - "443:443"         
          container_name: project-web
          deploy:
            resources:
              reservations:
                memory: 2048M
          volumes:
                - ./:/app:cached
                - nfs:/mnt/isola-data
          entrypoint: /app/docker/files/docker-entrypoint.sh
volumes:
  nfs:
    driver: local
    driver_opts:
      type: nfs
      o: addr=IP_V4,rw
      device: ":/data/nfs/folder_destination"

I tested with cached and delegated, but same result :confused:

Did I miss something ?

Thx

Docker community version : 2.0.0.3
Windows version : 10