Skip to content

custom mongod.conf file append to docker mongo it restarts  #692

Description

@emAdithyaShenoy

mongodb:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions