Back to catalog
MongoDB logo

Self-Host with Docker · Yantr

MongoDB

Popular NoSQL document database with flexible JSON-like documents and powerful querying.

Ports

1

Deps

0

Use Cases

4

About

What MongoDB does

MongoDB is a NoSQL document database using flexible JSON-like documents and dynamic schemas. It supports ad-hoc queries, indexing, aggregation, replication, and sharding—making it suitable for modern web apps, mobile backends, and analytics that require flexible data models.

Install Flow

How to self-host MongoDB

MongoDB can be deployed with standard Docker Compose using the Yantr app catalog. This page collects the basic information searchers usually need first: what MongoDB does, which Docker image Yantr uses, default ports, dependencies, and where to find the original compose template.

If you searched for MongoDB Docker, MongoDB Docker Compose, or self-host MongoDB, this page is the direct landing page for that app in Yantr's catalog.

After deployment, Yantr also lets you publish additional ports later from the stack page using Docker-style syntax. Use mappings like 8080:8080 for a fixed host port or just 8080 to let Docker assign a random host port for container port 8080.

Use Cases

What people run it for

Store application data for Node.js, Python, or other modern applications.
Build content management systems with flexible document structures.
Store IoT sensor data with time-series patterns.
Use as the database for analytics applications requiring flexible schemas.

Technical Details

Ports, image, and service metadata

Ports

These are the standard container ports Yantr knows about for MongoDB. You can keep the default mapping, remap them, or publish extra ports later after deployment with Docker syntax such as 3000:3000 or 3000.

Port Protocol Label
27017 TCP Database

Docker Image

mongo:latest

Service Name

mongodb

Notes

Things to know before you deploy

! Default port is 27017 for client connections
! Data stored in /data/db directory in the container
! Can require authentication in production deployments

Related Apps

More tools you might pair with MongoDB

More App Pages

Keep browsing the Yantr catalog

Explore the full app catalog for more self-hosted services, alternatives, and dependencies that work alongside MongoDB.

Page generated 2026-05-03T17:57:37.943Z