Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Dockerfile reiz/mongodb:1.0.2
FROM ubuntu:13.10
MAINTAINER Robert Reiz <>
RUN apt-key adv --keyserver hkp:// --recv 7F0CEB10
RUN echo 'deb dist 10gen' | tee /etc/apt/sources.list.d/10gen.list
RUN apt-get update
RUN apt-get install -y --force-yes -q apt-utils
RUN apt-get install -y --force-yes -q adduser
RUN apt-get install -y --force-yes -q mongodb-org-server=2.6.3
RUN apt-get install -y --force-yes -q mongodb-org=2.6.3
RUN apt-get install -y --force-yes -q mongodb-org-shell=2.6.3
RUN apt-get install -y --force-yes -q mongodb-org-mongos=2.6.3
RUN apt-get install -y --force-yes -q mongodb-org-tools=2.6.3
RUN mkdir -p /data
# Define mountable directories.
VOLUME ["/data"]
# Define working directory.
CMD mongod -f /data/mongod.conf
# Expose ports.
# - 27017: process
# - 28017: http
EXPOSE 27017
EXPOSE 28017

This comment has been minimized.

Copy link
Owner Author

@reiz reiz commented Jun 29, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment