Sign inSign up

veerendra2/mongodb

By veerendra2

Updated 5 months ago

Minimal 330MB MongoDB image contains only the mongod binary (not for production).

Image
Databases & storage
0

2.3K

veerendra2/mongodb repository overview

MongoDB

Minimal 330MB MongoDB image contains only the mongod binary (not for production).

Source repository: https://github.com/veerendra2/docker-images

What's Added

  • Version: 8.2.0 (pinned)
  • Image Size: ~330MB
  • Base Image: Ubuntu 24.04
  • Non-root User: Runs as mongodb user
  • Contains only mongod (no mongosh, mongos or other MongoDB binaries)

Automatic Updates

  • Dependabot: Monitors MongoDB releases and Ubuntu base image
  • CI/CD: Automated builds on PR merge and version bumps
  • Cron Job: Monthly rebuilds ensure latest security patches
  • Tags: Only latest tag available, always tracking current stable release

Usage

Environment Variables

If env vars are unset, mongo-init creates default credentials: admin / changeme!.

  • MONGO_INITDB_ROOT_USERNAME - Initial root user
  • MONGO_INITDB_ROOT_PASSWORD - Initial root password
  • MONGO_INITDB_ROOT_USERNAME_FILE - File containing username
  • MONGO_INITDB_ROOT_PASSWORD_FILE - File containing password
Docker Compose Example
services:
  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

docker pull veerendra2/mongodb:latest

Tag summary

Content type

Image

Digest

sha256:4e0e737d2

Size

106.6 MB

Last updated

5 months ago

docker pull veerendra2/mongodb