StruxaEggs Explorer

MongoDB 8

Application

MongoDB Server is a general purpose, document-based, distributed database built for modern application developers and for the cloud era.

Author: parker@parkervcp.comSource: pterodactyl/application-eggsUpdated: 5/24/2026

Startup Command

mongod --fork --dbpath /home/container/mongodb/ --port ${SERVER_PORT} --bind_ip 0.0.0.0 --logpath /home/container/logs/mongo.log -f /home/container/mongod.conf; until nc -z -v -w5 127.0.0.1 ${SERVER_PORT}; do echo 'Waiting for mongodb connection...'; sleep 5; done; mongosh --username ${MONGO_USER} --password ${MONGO_USER_PASS} --host 127.0.0.1:${SERVER_PORT} && mongosh --username ${MONGO_USER} --password ${MONGO_USER_PASS} --host 127.0.0.1:${SERVER_PORT}  --eval "db.getSiblingDB('admin').shutdownServer()"

Docker Images

LabelImage
MongoDB_8ghcr.io/ptero-eggs/yolks:mongodb_8

Environment Variables

NameVariableDefaultRules
Mongo Admin Username
The MongoDB Admin user
MONGO_USERadminrequired|string
Mongo Admin Password
MONGO_USER_PASSnonerequired|string