Volume subpath in docker compose

I tried a while ago, and it doesn’t seem to work with local or bind volume. But it works like a charm with nfsv4. See: Specifying top-level and service-level volumes in compose file - #2 by meyay

Update: related Github Issue → New volume mount subpath - does not create sub directory if it doesn't ee · Issue #47842 · moby/moby · GitHub