Sign inSign up

xemuliam/mongo

By xemuliam

Updated about 9 years ago

Unofiicial MongoDB docker image on Alpine

Image
1

7.3K

xemuliam/mongo repository overview

Mongo

  • Version Layers 3.4 = latest

Docker image for MondoDB, based on Alpine

  • Docker builds Docker Pulls Docker Stars
 ______ 
< Mongo >
 ------- 
    \
     \
      \
                    ##        .
              ## ## ##       ==
           ## ## ## ##      ===
       /""""""""""""""""___/ ===
  ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ /  ===- ~~~
       \______ o          __/
        \    \        __/
          \____\______/

Please use corresponding branches from this repo to play with code.

Overview

Dockerized Mongo database.

Mongo tools are uincluded also:

  • bsondump - display BSON files in a human-readable format
  • mongoimport - Convert data from JSON, TSV or CSV and insert them into a collection
  • mongoexport - Write an existing collection to CSV or JSON format
  • mongodump/mongorestore - Dump MongoDB backups to disk in .BSON format, or restore them to a live database
  • mongostat - Monitor live MongoDB servers, replica sets, or sharded clusters
  • mongofiles - Read, write, delete, or update files in GridFS
  • mongooplog - Replay oplog entries between MongoDB servers
  • mongotop - Monitor read/write activity on a mongo server

Exposed ports

  • 27017 - The default port for mongod and mongos instances
  • 28017 - The default port for the MongoDB web status page

Volumes

All below volumes can be mounted to docker host machine folders or shared folders to easy maintain data inside them.

Mongo-specific:

  • /data/db
  • /data/configdb

Official Documentation and Guides

Usage

This image can either be used as a base image for building on top of MongoDB or just to experiment with. I personally have not attempted to use this in a production use case.

Please use corresponding branches from this repo to play with code.

Pre-Requisites

Ensure the following pre-requisites are met (due to some blocker bugs in earlier versions). As of today, the latest Docker Toolbox and Homebrew are fine.

  • Docker 1.10+
  • Docker Machine 0.6.0+
  • Kitematic 0.12

(all downloadable as a single Docker Toolbox package as well)

How to use from Kitematic

  1. Start Kitematic
  2. Enter xemuliam in serach box
  3. Choose mongo image
  4. Click Create button

Kitematic will assign all ports and you'll be able to run MongoDB simple web-interface directly from Kitematic.

How to use from Docker CLI

  1. Start Docker Quickstart Terminal
  2. Run command docker run -d -p 27017:27017 -p 28017:28017 xemuliam/mongo
  3. Check Docker machine IP docker-machine ls
  4. Use IP from previous step in address bar of your favorite browser, e.g. http://192.168.99.100:28017

Enjoy! :)

Tag summary

Content type

Image

Digest

Size

92.1 MB

Last updated

about 9 years ago

docker pull xemuliam/mongo