cleanstart/mongodb

Verified Publisher

By CleanStart

Updated 1 day ago

Secure by Design, Built for Speed, Hardened Container Images on a minimal base CleanStart OS.

Image
Databases & storage
0

10K+

cleanstart/mongodb repository overview

Container Documentation for Mongodb Documentation

The CleanStart Mongodb image provides a production-ready, security-hardened database server optimized for enterprise environments. Built on a minimal base OS with comprehensive security hardening, this image delivers reliable data storage with advanced security features.

📌 Base Foundation: Security-hardened, minimal base OS designed for enterprise containerized environments.

Image Path: cleanstart/mongodb:latest

Registry: Docker Hub

Key Features

Core capabilities and strengths of this container

  • High-performance data storage and retrieval
  • ACID compliance and transaction support
  • Advanced indexing and query optimization
  • Enterprise-grade security and access control

Common Use Cases

Typical scenarios where this container excels

  • Primary database for web applications
  • Data warehousing and analytics workloads
  • High-availability database clusters
  • Development and testing environments

Pull Latest Image

Download the container image from the registry

docker pull cleanstart/mongodb:latest
docker pull cleanstart/mongodb:latest-dev

Basic Run

Run the container with basic configuration

docker run -it --name mongodb cleanstart/mongodb:latest

Production Deployment

Deploy with production security settings

docker run -d --name mongodb-prod \
  -v mongodb-data:/data/db \
  -p 27017:27017 \
  cleanstart/mongodb:latest 
sleep 15
docker exec mongodb-prod mongosh admin --eval 'db.createUser({user:"admin",pwd:"Pass123",roles:[{role:"root",db:"admin"}]})'
docker stop mongodb-prod && docker rm mongodb-prod
docker run -d --name mongodb-prod \
  -v mongodb-data:/data/db \
  -p 27017:27017 \
  --restart unless-stopped \
  cleanstart/mongodb:latest \
  --auth

Volume Mount

Mount local directory for persistent data

docker run -v /app:/app cleanstart/mongodb:latest

Port Forwarding

Run with custom port mappings

docker run -p 8080:8080 cleanstart/mongodb:latest

Environment Variables

Configuration options available through environment variables

Security Best Practices

Recommended security configurations and practices

  • Use specific image tags for production (avoid latest)
  • Configure resource limits: memory and CPU constraints
  • Enable read-only root filesystem when possible
  • Run containers with non-root user (--user 1000:1000)
  • Use --security-opt=no-new-privileges flag
  • Regularly update container images for security patches
  • Implement proper network segmentation
  • Monitor container metrics for anomalies

Kubernetes Security Context

Recommended security context for Kubernetes deployments

securityContext:
  runAsNonRoot: true
  runAsUser: 1000
  runAsGroup: 1000
  readOnlyRootFilesystem: true
  allowPrivilegeEscalation: false
  capabilities:
    drop:
      - ALL
## Documentation Resources Essential links and resources for further information

CleanStart Images: https://images.cleanstart.com/

Community Images:
Docker Hub: https://hub.docker.com/u/cleanstart
GitHub: https://github.com/cleanstart-containers
AWS ECR Public Gallery: https://gallery.ecr.aws/cleanstart/

Presence on Social Media:
Community: https://www.linkedin.com/groups/18324021/
YouTube: https://www.youtube.com/@CleanStartOfficial

Contribute to Container Use Cases: https://github.com/cleanstart-dev/cleanstart-use-cases/

Tag summary

Content type

Image

Digest

sha256:d1340b0f7

Size

349.3 MB

Last updated

1 day ago

docker pull cleanstart/mongodb:8.3.4-amd64-dev