# Mount project volumes with NFS
# For use on Mac with VirtualBox or Docker for Mac
# Pros: very good performance, almost realtime file sync 
# Cons: no inotify/fs watchers

version: "3.9"

volumes:
  cli_home:  # /home/docker volume in cli
  project_root:  # Project root volume (NFS)
    driver: local
    driver_opts:
      type: nfs
      device: :${PROJECT_ROOT}
      o: addr=${DOCKSAL_HOST_IP},vers=3,nolock,noacl,nocto,noatime,nodiratime,actimeo=1
  db_data:  # Database data volume (bind)
  docksal_ssh_agent:  # Shared ssh-agent volume
    external: true

# Mount project volumes with NFS
# For use on Mac with VirtualBox or Docker for Mac
# Pros: very good performance, almost realtime file sync 
# Cons: no inotify/fs watchers

version: "3.9"

volumes:
  cli_home:  # /home/docker volume in cli
  project_root:  # Project root volume (NFS)
    driver: local
    driver_opts:
      type: nfs
      device: :${PROJECT_ROOT}
      o: addr=${DOCKSAL_HOST_IP},vers=3,nolock,noacl,nocto,noatime,nodiratime,actimeo=1,wsize=32768,rsize=32768
  db_data:  # Database data volume (bind)
  docksal_ssh_agent:  # Shared ssh-agent volume
    external: true

Set NFS Read Write Values for Volume
Set NFS Read Write Values for Volume
