docker-compose: error after restarting mongodb file. "Error operation: WiredTiger.lock file operation denied"

docker-compose.yml

version: "2"
services:
    mongodb:
        image: mongo
        container_name: mongodb
        volumes:
            - ${pwd}/Docker-Config/db/mongo.conf:/etc/mongo.conf
            - ${pwd}/Docker-Config/db/data:/data/db
        ports:
            - "27017:27017"

Its not giving error first time, but after second time doing docker-compose up giving error.

Source: Docker Questions