Sign inSign up

ellerbrock/alpine-mongodb

By ellerbrock

Updated almost 7 years ago

MongoDB based on Alpine Linux Edge running as unprivileged User

Image
3

1.5K

ellerbrock/alpine-mongodb repository overview

docker

alpine-mongodb

MongoDB based on Alpine Linux Edge running as unprivileged User

Docker Automated Build Docker Pulls Open Source Love Gitter Chat

Installation

docker pull frapsoft/alpine-mongodb

About the Container

As Base Image i use Alpine Linux which is lightweight Distribution with a small surface area for security concerns, but with enough functionality for development and interactive debugging.

To prevent zombie reaping processes i run dumb-init as PID 1 which forwards signals to all processes running in the container.

Configuration Parameter

These Settings are optional, if not set the default values will be used.

# Optional Configuration Parameter
ARG SERVICE_USER      # Mongo User
ARG SERVICE_HOME      # Mongo Database Directory
ARG SERVICE_PORT      # Mongo Port
ARG SERVICE_LOGFILE   # Mongo Logfile
ARG SERVICE_LOGLEVEL  # Mongo Loglevel

# Default Settings
ENV SERVICE_USER ${SERVICE_USER:-mongo}
ENV SERVICE_HOME ${SERVICE_HOME:-/data/db}
ENV SERVICE_PORT ${SERVICE_PORT:-27017}
ENV SERVICE_LOGFILE ${SERVICE_LOGFILE:-/data/log/mongod.log}
ENV SERVICE_LOGLEVEL ${SERVICE_LOGLEVEL:-vvv}

Documentation: https://docs.docker.com/compose/compose-file/#/args

Contact / Social Media

Get the latest News about Web Development, Open Source, Tooling, Server & Security

GithubDockernpmTwitterFacebookGoogle+Gitter

Tag summary

Content type

Image

Digest

Size

63.4 MB

Last updated

almost 7 years ago

docker pull ellerbrock/alpine-mongodb