Named volumes with docker compose

I have a stack built from docker-compose.yml and I would like to use a named volume with a name that is unique to this stack/service/instance combination. I seem to recall there’s some way to do that under the volumes: declaration for the volume but I can’t find it in the docs. Help?