Minimal 330MB MongoDB image contains only the mongod binary (not for production).
2.3K
Minimal 330MB MongoDB image contains only the mongod binary (not for production).
Source repository: https://github.com/veerendra2/docker-images
8.2.0 (pinned)~330MBmongodb usermongod (no mongosh, mongos or other MongoDB binaries)latest tag available, always tracking current stable releaseIf env vars are unset, mongo-init creates default credentials:
admin/changeme!.
MONGO_INITDB_ROOT_USERNAME - Initial root userMONGO_INITDB_ROOT_PASSWORD - Initial root passwordMONGO_INITDB_ROOT_USERNAME_FILE - File containing usernameMONGO_INITDB_ROOT_PASSWORD_FILE - File containing passwordservices:
mongo:
image: veerendra2/mongodb
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
ME_CONFIG_BASICAUTH_ENABLED: true
docker compose -f compose.yml up
myrootexampledocker pull veerendra2/mongodb:latest
Content type
Image
Digest
sha256:4e0e737d2…
Size
106.6 MB
Last updated
5 months ago
docker pull veerendra2/mongodb