Docker Community Forums

Share and learn in the Docker community.

How to reverse mount volumes in docker-compose yml file


(Pulkit Singhal) #1

I need to mount a container volume to host in read only mode.

I found some info on how to do this via docker command: https://github.com/docker/docker/issues/12853#issuecomment-124120393

But how can I do so in a docker-compose.yml file?