All Projects → aashreys → docker-mongo-auth

aashreys / docker-mongo-auth

Licence: MIT license
Easily setup authentication on Docker's Official MongoDB image.

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to docker-mongo-auth

tutorials
Collection of tutorials for various libraries and technologies
Stars: ✭ 98 (+25.64%)
Mutual labels:  mongo
create-mern-ts-app
Create a Mongo-Express-React-Node Application written in TypeScript out of the box.
Stars: ✭ 30 (-61.54%)
Mutual labels:  mongo
docker-mongodb-backup
Docker MongoDB Backup Container based on Alpine w/S6 init, Zabbix Monitoring
Stars: ✭ 27 (-65.38%)
Mutual labels:  mongo
mongo-playground
Helps developers run mongo queries
Stars: ✭ 16 (-79.49%)
Mutual labels:  mongo
pytest-mock-resources
Pytest Fixtures that let you actually test against external resource (Postgres, Mongo, Redshift...) dependent code.
Stars: ✭ 84 (+7.69%)
Mutual labels:  mongo
mern-stack-crud
MERN stack (MongoDB, Express, React and Node.js) create read update and delete (CRUD) web application example
Stars: ✭ 142 (+82.05%)
Mutual labels:  mongo
derivejs
DeriveJS is a reactive ODM - Object Document Mapper - framework, a "wrapper" around a database, that removes all the hassle of data-persistence by handling it transparently in the background, in a DRY manner.
Stars: ✭ 54 (-30.77%)
Mutual labels:  mongo
moongoon
An object-document mapper for MongoDB. 🌙
Stars: ✭ 41 (-47.44%)
Mutual labels:  mongo
product-catalog-spring-mvc-demo
A Product Catalog Demonstration Project Using Spring MVC and Mongo DB
Stars: ✭ 16 (-79.49%)
Mutual labels:  mongo
deploy shard mongodb
This repository has a set of scripts and resources required for deploying MongoDB replicated sharded cluster.
Stars: ✭ 17 (-78.21%)
Mutual labels:  mongo
GradleMongoPlugin
Gradle plugin for running a managed instance of Mongo.
Stars: ✭ 48 (-38.46%)
Mutual labels:  mongo
toutiao
模仿今日头条,实现 APP 端,Server 端, Web 管理端
Stars: ✭ 17 (-78.21%)
Mutual labels:  mongo
mongo-dot-notation
Transform objects to MongoDB update instructions
Stars: ✭ 35 (-55.13%)
Mutual labels:  mongo
koa-session-mongoose
Mongoose store for Koa sessions
Stars: ✭ 29 (-62.82%)
Mutual labels:  mongo
php-mongo-migrator
Migrations of MongoDB. Part of @PHPMongoKit
Stars: ✭ 29 (-62.82%)
Mutual labels:  mongo
Registration-and-Login-using-MERN-stack
Simple Registration and Login component with MERN stack
Stars: ✭ 210 (+169.23%)
Mutual labels:  mongo
eReports-open-source
Sistema de envio e agendamento de relatórios
Stars: ✭ 30 (-61.54%)
Mutual labels:  mongo
mongtype
🚀 MongoDB Repository Pattern for Node written in TypeScript
Stars: ✭ 63 (-19.23%)
Mutual labels:  mongo
NodeScalableArchitecture
A Scalable Node Architecture/Server. This repository contains a complete implementation of writing scalable nodejs server/architecture on my medium blog.
Stars: ✭ 62 (-20.51%)
Mutual labels:  mongo
discord-economy-super
Easy and customizable economy module for your Discord bot.
Stars: ✭ 28 (-64.1%)
Mutual labels:  mongo

docker-mongo-auth

A Docker Image for MongoDB which makes it easy to create an Admin, a Database and a Database User when the container is first launched.

Customization

There are a number of environment variables which you can specify to customize the username and passwords of your users.

  • With Dockerfile

    // Auth Configuration.
    // These environment variables can also be specified through command line or docker-compose configuration
    # ENV AUTH yes
    
    # ENV MONGODB_ADMIN_USER root
    # ENV MONGODB_ADMIN_PASS password
    
    # ENV MONGODB_APPLICATION_DATABASE your_db
    # ENV MONGODB_APPLICATION_USER user
    # ENV MONGODB_APPLICATION_PASS password
    
  • With docker-compose.yml

    services:
      db:
        image: aashreys/mongo-auth:latest
        environment:
          - AUTH=yes
          - MONGODB_ADMIN_USER=admin
          - MONGODB_ADMIN_PASS=admin123
          - MONGODB_APPLICATION_DATABASE=sample
          - MONGODB_APPLICATION_USER=aashrey
          - MONGODB_APPLICATION_PASS=admin123
        ports:
          - "27017:27017"
    // more configuration
    
  • With command line

    docker run -it \
      -e AUTH=yes \
      -e MONGODB_ADMIN_USER=admin \
      -e MONGODB_ADMIN_PASS=adminpass \
      -e MONGODB_APPLICATION_DATABASE=mytestdatabase \
      -e MONGODB_APPLICATION_USER=testuser \
      -e MONGODB_APPLICATION_PASS=testpass \
      -p 27017:27017 aashreys/mongo-auth:latest
    

Find the image on Docker Cloud @ https://cloud.docker.com/swarm/aashreys/repository/docker/aashreys/mongo-auth

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].