Public Repository

Last pushed: 2 years ago
Short Description
mongodb server with enabled authentication by default, using generated or predefined password
Full Description

To use with docker-compose:

  • Dockerfile content:

      FROM guerrerocarlos/secured-mongodb:2.6
    
  • docker-compose.yml content:

    mongo:
      build: .
      environment:
        - STORAGE_ENGINE=wiredTiger
        - MONGODB_PASS=*set_your_password_here*
        - JOURNALING=yes
        - AUTH=yes
      volumes:
        - ./hostdb:/data/db
      ports:
        - "27017:27017"
    
  • Create folder ./hostdb to be used by mongodb outside the container

      mkdir ./hostdb
    
  • execute docker-compose build

      docker-compose build
    
  • execute docker-compose up

      docker-compose up
    
  • enjoy :)

Source at: https://github.com/guerrerocarlos/mongodb

Docker Pull Command
Owner
guerrerocarlos

Comments (0)