Docker and NFS Share

If you want an external created volume to be used within a compose.yml, you need to declare it as “external: true”, e.g.:

volumes:
  seafile_data:
    external: true
  seafile_mysql:
    external: true

Though, instead I would advise to declare the nfs volume directly inside the compose.yml:

volumes:
  seafile_data:
    driver_opts:
      type: nfs 
      o: addr=192.168.2.13
      device: :/volume1/Cloud/Seafile/DATA
  seafile_mysql:
    driver_opts:
      type: nfs 
      o: addr=192.168.2.13
      device: :/volume1/Cloud/Seafile/MYSQL

Though, volume declarations are created on first start and are immutable, if you want changes on the driver_opts to be used, you will need to remove the volume manualy (docker volume rm) and restart the compose stack to re-register the volume with changed options.