This image is built on Alpine
USER
: The non-root user to be used in the container (defaults tomongo
)- Any build arguments from the
Alpine
base image liammartens/alpine
/etc/mongod
: For mongod configuration file(s) (default file is present)/data
: For persistent data
mongod
starts with the logpath pointing to /prof/self/fd/2
, which is stdout
for docker.
You can control several options for MongoDB
MONGODB_PORT
: Defines which port to bind the server to (defaults to27017
)MONGODB_ADMIN_USER
: Defines what username to use as admin user (deafults toadmin
)MONGODB_ADMIN_PASS
: Defines the admin password to use (randomly generated if none given, passed tostdout
)MONGODB_NAME
: The default database name, if given areadWrite
user is also created (optional)MONGODB_USER
: ThereadWrite
username for the default database (defaults to the database name)MONGODB_PASS
: The password for the database user (randomly generated if none given, passed tostdout
)