Storage device-agent docker compose

Hi,

I'm strugling a bit to get storage working in my edge device running the device agent. (in docker compose).
Should I map a data folder like in a typical node-red compose file?

device:
image: flowfuse/device-agent:latest
container_name: device-agent
ports:
- "1880:1880"
volumes:
- ./volumes/device-agent/device.yml:/opt/flowfuse-device/device.yml
- ./volumes/device-agent/data:/opt/flowfuse-device/project/data

Can someone point me in the right direction? perhaps paste a compose snippet ?

Thanks a lot