Generally it should look like this:
services:
name:
image:
volumes:
- <source_path_in_pc>:<destination_path_in_container>
volumes also overrides the existing path in the container if it exist
why do you think it's a problem with the volumes?
can you send your docker-compose.yaml?