Not able to implement authentication in MongoDB

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      Linux Ubuntu

      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

            Assignee:
            Gabriel Russell (Inactive)
            Reporter:
            Ganesh J K
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: