I found the answer here: CosmosDB Emulator Linux Image - Mount Volume
When I tried it, it seemed to work
services:
cosmosdb:
volumes:
- cosmosdrive:/tmp/cosmos/appdata # <-- pointing to this location did it for me
volumes:
cosmosdrive: