---
title: "Deploy Neo4j"
description: "Graph database with the Cypher query language"
category: "Storage"
url: https://railway.com/deploy/neo4j-1
---

# Deploy Neo4j

Graph database with the Cypher query language

**[Deploy Neo4j on Railway](https://railway.com/template/neo4j-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/neo4j-1/manifest.json

- **Creator:** zer0person's Projects
- **Category:** Storage
- **Total deploys:** 1

## Template content

### Neo4j

- **Image:** neo4j:5-community
- **Start command:** `sh -c 'export NEO4J_server_memory_heap_initial__size=512m NEO4J_server_memory_heap_max__size=1g NEO4J_server_memory_pagecache_size=512m; exec /startup/docker-entrypoint.sh neo4j'`
- **Public domain:** Yes

## Documentation

# Deploy and Host Neo4j on Railway

[Neo4j](https://github.com/neo4j/neo4j) is a graph database that stores data as nodes and relationships and is queried with Cypher.

## About Hosting Neo4j

This template runs the official `neo4j:5-community` image with a persistent volume at `/data` and modest memory settings (1 GB heap, 512 MB page cache). The login is `neo4j` with a random password generated into the `NEO4J_AUTH` variable (format `neo4j/`): read it in the Variables tab. The public URL serves the HTTP API on port 7474, for example `POST /db/neo4j/tx/commit` with basic auth. The Bolt protocol is not exposed publicly.

## Common Use Cases

- Knowledge graphs and recommendation engines
- Fraud and network analysis
- Backend for GraphRAG and agent memory over HTTP

## Dependencies for Neo4j Hosting

- One service with a volume; nothing else

### Deployment Dependencies

- [Neo4j on GitHub](https://github.com/neo4j/neo4j)
- [Docker image](https://hub.docker.com/_/neo4j)

## Why Deploy Neo4j on Railway?

Railway gives you a public HTTPS URL, persistent storage where needed and automatic restarts with no server to maintain. Use the generated password in the NEO4J_AUTH variable to authenticate.


## Similar templates

- [RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set](https://railway.com/deploy/rustfs-or-just-updated-s3-object-store-p) — S3-compatible object store, keys and public URL preset, volume kept
- [TimescaleDB](https://railway.com/deploy/timescaledb-railway-template) — A PostgreSQL-based time-series database for analytics on Railway.
- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.

Open this page in a browser: https://railway.com/deploy/neo4j-1
