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:

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