Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1086

Not able to implement authentication in MongoDB

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • None
    • None
    • None
    • Linux Ubuntu

    Description

      MongoDB installed in Linux ubuntu through the docker image.
      I have set the parameters in yaml file like below to implement the authentication. But when i mount it using the command "docker-compose up -d", i am getting error like "Unsupported config option for 'db' service: 'security'". Could you please help me to resolve the issue.

      docker-compose.yaml
      ******************************
      db:
      image: mongo:2.6.4
      command: ["mongod", "--smallfiles"]
      expose:

      • "27017"
        ports:
      • "27017:27017"
        security:
        keyFile: "/home/ubuntu/dockerlab/keyfile.key"
        authorization: "enabled"
        ----------------
        Thanks in advance - Ganesh J K

      Attachments

        Activity

          People

            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            ganeshjk Ganesh J K
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: