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.

neo4j logo

Self-host neo4j

3.2.0-alpha08

Graph database with Cypher queries and ACID transactions

ReleaseOpen CoreGPL-3.0
docker run --detach --publish=7474:7474 --publish=7687:7687 --volume=$HOME/neo4j/data:/data --volume=$HOME/neo4j/logs:/logs --env NEO4J_dbms_memory_pagecache_size=4G neo4j:2026.09.0
Updated4 months ago
LanguageJava
Setup difficultyModerate
Stars
17 413
CPU
Intel x86-x64 Core i3 minimum, Core i7 recommended. AMD x86-x64, ARM64 (such as Apple Silicon, Graviton).
RAM
2GB minimum, 16GB or more recommended.
Storage
10GB SATA Minimum, SSD with SATA Express or NVMe recommended.
Ports
7474 (HTTP connector, used by Neo4j Browser and the HTTP API; enabled by default), 7473 (HTTPS connector (disabled by default), used by Neo4j Browser and the HTTP API), 7687 (Bolt connector, used by Cypher Shell, Neo4j Browser and the official drivers; enabled with encryption off)
Docker
neo4j

What is neo4j?

Neo4j is a high-performance graph store for people who model data as nodes and relationships instead of fixed tables, offering a declarative query language together with ACID transactions. Community Edition covers the core server: the Cypher language, property-graph storage, full-text and vector indexing, the Bolt binary protocol with official language drivers, the embedded Neo4j Browser for querying and visualizing, and the Graph Data Science algorithm library (parallelization limited to four CPU cores). Self-hosting uses the official Docker image with published ports 7474 (HTTP) and 7687 (Bolt) plus /data and /logs volumes, rpm and deb packages with yum/apt repositories, tar and zip archives for Linux, macOS and Windows, or Helm charts on Kubernetes; a bare-metal server needs a compatible JVM (Java 21 or 25 for current releases) and an initial password set with neo4j-admin dbms set-initial-password. The Community Edition is licensed under GPLv3, while Enterprise Edition adds closed-source components such as autonomous clustering, multi-database, role-based access control, LDAP/Active Directory integration and hot backups under a commercial license (free trial available, and Community lacks those items). Neo4j also sells the fully managed Neo4j AuraDB cloud, which has a $0 tier.

neo4j alternatives

Should you self-host neo4j?

neo4j scores 77/100 on selfhost.directory (how scoring works) and ranks #5 of 38 in Databases. It has 17 413 GitHub stars, +138 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 GPL-3.0-licensed and written mostly in Java.

Its closest alternative on selfhost.directory is etcd (85/100, 52 677 stars). It scores higher overall, so compare the two before you pick. See neo4j vs etcd side by side.

Features

  • ACID Transactions
  • Bolt protocol
  • Built-in web query tool
  • Clustering / high availabilityEnterprise Edition only; listed as Not Included for Community.
  • Cypher query language
  • Full-text indexing and search
  • Graph algorithms (GDS)Community Edition of the library is limited to four CPU cores and three model catalog entries.
  • LDAP / Active Directory integrationEnterprise Edition feature per the pricing table.
  • Multi-DatabaseEnterprise Edition; Not Included for Community.
  • Official language drivers
  • Online backup and restoreOnline backup is Enterprise Only; Community has offline dump/load.
  • Property graph model
  • Role-based Access ControlEnterprise Edition; Community lists role-based security as Not Included.
  • Vector indexing

neo4j README

Neo4j: Graphs for Everyone

Neo4j is the world’s leading Graph Database. It is a high performance graph store with all the features expected of a mature and robust database, like a friendly query language and ACID transactions. The programmer works with a flexible network structure of nodes and relationships rather than static tables — yet enjoys all the benefits of enterprise-quality database. For many applications, Neo4j offers orders of magnitude performance benefits compared to relational DBs.

Learn more on the Neo4j website.

Discord

Discourse users

Using Neo4j

Neo4j is available as a fully managed solution where you can get started for free using Neo4j Aura. Neo4j is also available as a standalone server that you can download.

How to install neo4j

Install neo4j with Docker

Environment variables
NEO4J_ prefixed settings, NEO4J_AUTH, EXTENSION_SCRIPT
docker run \
    --detach \
    --publish=7474:7474 --publish=7687:7687 \
    --volume=$HOME/neo4j/data:/data \
    --volume=$HOME/neo4j/logs:/logs \
    --env NEO4J_dbms_memory_pagecache_size=4G \
    neo4j:2026.09.0

The image default memory assignments (512M) are meant for learning, not production; mount a /conf volume or build a custom image for production.

How to configure neo4j

  • NEO4J_server_memory_pagecache_size512MDocker image default page cache assignment, deliberately tiny so several containers fit on one host.

    values: memory size

  • NEO4J_server_memory_heap_max__size512MDocker image default max heap assignment for the JVM.

    values: memory size

  • NEO4J_dbms_memory_pagecache_sizeExample of passing a configuration value to the container as an environment variable.

    values: memory size (e.g. 4G)

  • NEO4J_Prefix for mapping any Neo4j configuration setting into a Docker environment variable; single underscore is written as __ and periods become underscores.
  • NEO4J_db_tx__log_rotation_sizeExample variable name for the setting db.tx_log.rotation.size.

FAQ

Can you use AuraDB on multiple cloud providers and marketplaces?

AuraDB runs on AWS, Microsoft Azure and Google Cloud across more than 60 regions and Professional can be bought through those cloud marketplaces.

Is there a free trial for the paid plans?

Yes, free trials of the AuraDB Professional tier are offered with the paid plans, currently only in some geographies.

How does Neo4j AuraDB Professional differ from the free plan?

The free plan caps node and relationship counts and suits small projects and prototyping, while Professional offers higher performance and best-effort support for production applications.

How do the different Neo4j AuraDB plans compare?

Free is for learning and exploring, Professional targets production apps, Business Critical adds high availability plus enterprise controls and 24/7 support, and Virtual Dedicated Cloud gives dedicated infrastructure with VDC-level networking.

More in Databases

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…