ERROR: child process failed, exited with 1 when attach log file in docker-compose volumes

Hi. I have this docker-compose file:

version: "3.7"

    container_name: mongo
    image: mongo
    restart: unless-stopped
    entrypoint: ["mongod","--config","/etc/mongod.conf"]
      - ./configs/mongo/mongod.conf:/etc/mongod.conf

And when im build and run tihs docker-compose file, and then checks logs for mongo, im see this errors:

mongo       | about to fork child process, waiting until server is ready for connections.
mongo       | forked process: 8
mongo       | ERROR: child process failed, exited with 1
mongo       | To see additional information in this output, start without the "--fork" option.

But if im comment line with config volume and line with entrypoint, all works fine. But im need to have config on host machine and proxy them to container. The config file I’m proxying took from here.