selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

mongo logo

Self-host mongo

r9.0.8

Document database with replica sets and sharding

ReleaseSource AvailableSSPL-1.0
docker run --name mongodb -p 27017:27017 -d mongodb/mongodb-community-server:latest
Updated6 days ago
LanguageC++
Setup difficultyModerate
Stars
28 681
CPU
AVX instruction set
Port
27017 (mongod and mongos client connections)
Docker
mongodb/mongodb-community-server

What is mongo?

Should you self-host mongo?

mongo scores 76/100 on selfhost.directory (how scoring works) and ranks #1 of 2 in Document Database. It has 28 681 GitHub stars, +44 in the last 30 days.

There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is SSPL-1.0-licensed and written mostly in C++.

Its closest alternative on selfhost.directory is ferretdb (67/100, 11 116 stars). mongo scores higher overall. See mongo vs ferretdb side by side.

Features

  • Document data model
  • Encryption at RestOn self-managed deployments this page describes encryption at rest using MongoDB Enterprise.
  • Full-Text SearchThe MongoDB Search component has to be installed separately from the database server.
  • Geospatial Queries
  • Multi-document ACID transactions
  • Query profiling
  • Replication / replica sets
  • Role-based Access Control
  • Sharding
  • TLS connection encryption
  • Vector Search

mongo README

Logo MongoDB README

Welcome to MongoDB!

Components

  • mongod - The database server.
  • mongos - Sharding router.

Download MongoDB

How to install mongo

Install mongo with Docker

docker pull mongodb/mongodb-community-server:latest
docker run --name mongodb -p 27017:27017 -d mongodb/mongodb-community-server:latest

Official image maintained by MongoDB; mongod command-line options can be appended to the run command. MongoDB recommends the Enterprise image or the Kubernetes Operator for production.

How to configure mongo

  • systemLog.pathLog file path when logs go to a file.

    values: file path

  • systemLog.logAppendAppend to an existing log file instead of rotating it.

    values: true | false

  • systemLog.destinationWhere MongoDB sends log output; file requires systemLog.path.

    values: file | syslog

  • net.port27017TCP port the mongod or mongos instance listens on for client connections.

    values: integer

  • net.bindIplocalhostHostnames, IP addresses or Unix socket paths the instance binds to.

    values: comma-separated hosts/IPs

FAQ

Is Automated Embedding for vector search available in Community Edition?

Native full-text and vector search are free in Community Edition, and the Automated Embedding feature that generates vectors during ingestion and querying is in public preview there.

What environments are supported for search and vector search?

They work on Linux distributions that support MongoDB Community 8.2 or newer, plus in Docker containers and with the Kubernetes Operator; macOS and Windows are not supported.

Are search (full-text) and vector search capabilities available in Community Edition?

Yes, from Community Edition 8.2 onward the database itself supports full-text and vector search, including autocomplete, fuzzy matching, faceting and RAG, without an external search engine.

Should Community Edition be used for an Atlas local development environment?

Community Edition runs locally and can work fully offline, which suits building and testing applications yourself; the Atlas CLI is the tool aimed at creating and managing local Atlas clusters.

Is the MongoDB Community Edition free?

Yes, it is the free-to-use, source-available edition, distributed under the Server Side Public License.

What is the difference between MongoDB Atlas, Enterprise Advanced, and Community Edition?

Atlas is the managed cloud platform that handles infrastructure, backups, patching and scaling, while Enterprise Advanced is the self-managed suite with automation tools, and Community Edition is the free core server. Some capabilities such as auto-scaling, stream processing and federated queries exist only in Atlas.

What is the difference between MongoDB Community Edition and MongoDB Enterprise Advanced?

Enterprise Advanced adds capabilities the community build lacks on self-managed deployments, such as an in-memory storage engine, auditing and Kerberos authentication, plus management tooling, a commercial license and round-the-clock support. Core server capabilities are broadly the same.

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…