Hi. I have this docker-compose file:
version: "3.7" services: mongo: container_name: mongo image: mongo restart: unless-stopped entrypoint: ["mongod","--config","/etc/mongod.conf"] volumes: - ./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.