the behavior of volume Mode between docker-compose and docker cli

1-a. Run container with docker cli with volume "/var/run/docker.sock"

docker run -it -v /var/run/docker.sock:/var/run/docker.sock hoge

1-b. Run docker inspect, Mounts.Mode shows "" (shows empty)

        {
            "Type": "bind",
            "Source": "/var/run/docker.sock",
            "Destination": "/var/run/docker.sock",
            "Mode": "",
            "RW": true,
            "Propagation": "rprivate"
        }

2-a. Run container with docker-compose

services:
node-red:
    container_name: hoge
    image: hoge/hoge
    volumes:
        - /var/run/docker.sock:/var/run/docker.sock

2-b. Run docker inspect, Mounts.mode shows "rw"

        {
            "Type": "bind",
            "Source": "/var/run/docker.sock",
            "Destination": "/var/run/docker.sock",
            "Mode": "rw",
            "RW": true,
            "Propagation": "rprivate"
        }

is there any way to mount volume in empty mode (e,g, 1-b) with docker-compose?

Source: Docker Questions