Depending on the implementation of the service it MAY NOT have access to any volume.

A container MAY require a service-specific volume that is accessible to that service only.

  foobar:  # custom name
    target: /mnt/data
    persist: true

Each volume name under volumes may have the following information about it:

targetRequired. The target directory for this volume
persistWhether this volume must be persisted or not. If not specified, it defaults to false