container_name: mongodb
hostname: mongodb
image: mongo:4.4
volumes:
- "/etc/mongodb/data/db:/var/lib/mongodb/"
- "/etc/mongodb/config/mongod.conf.orig:/etc/mongod.conf.orig"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
ports:
- 27017:27017/tcp
restart: unless-stopped
command: ["mongod", "--config", "etc/mongod.conf.orig"]
i want to use the custom mongod.conf to append into the container for the settings
mongodb:
i want to use the custom mongod.conf to append into the container for the settings