MongoDB based on Alpine Linux Edge running as unprivileged User
1.5K

MongoDB based on Alpine Linux Edge running as unprivileged User
docker pull frapsoft/alpine-mongodb
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.
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
Get the latest News about Web Development, Open Source, Tooling, Server & Security
Content type
Image
Digest
Size
63.4 MB
Last updated
almost 7 years ago
docker pull ellerbrock/alpine-mongodb