Skip to content

kovagoz/docker-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Mongo

MongoDB database in a tiny Docker container.

This image contains only the latest mongod binary without the client and other CLI tools.

How to build?

Clone the repository and run the make command.

Make uses a CentOS container to extract the libraries needed by mongod.

Usage

For testing purposes run the following command:

$ make run

A new mongo container will be started in the foreground and publish the port 27017 to the host system.

If you would like to run mongo in the background using another port, run a command like this:

$ docker run -d -p 5000:27017 kovagoz/mongo

About

MongoDB database in a tiny Docker container.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published