Deploy Memgraph

Memgraph 3.13: in-memory graph database (Cypher, Bolt) with Memgraph Lab.

Deploy Memgraph

Just deployed

/var/lib/memgraph

Just deployed

Deploy and Host Memgraph on Railway

Memgraph is an in-memory graph database that speaks Cypher and the Bolt protocol, so Neo4j drivers and many Neo4j tools work with it. It is built for fast graph queries and streaming workloads such as recommendations, fraud detection, network analysis and knowledge graphs for AI applications.

About Hosting Memgraph

This template runs the official memgraph/memgraph:3.13.1 image with Memgraph Lab, the web UI, as a second service. A database user with a generated password is created on first boot, and Bolt stays on Railway's private network at memgraph.railway.internal:7687 over IPv4 and IPv6. Lab is public; it asks for that user and password to connect. Snapshots and the write-ahead log are stored on a Railway volume, so data survives redeploys. Memgraph keeps the whole graph in memory, so size the service for your data; small graphs fit the Hobby plan. It runs as root because Memgraph insists that the process owns its data directory.

Common Use Cases

  • Graph queries in Cypher for recommendations or fraud detection
  • A knowledge graph behind a GraphRAG or AI agent project
  • Running Neo4j-compatible code on a faster in-memory engine

Dependencies for Memgraph Hosting

  • memgraph/memgraph:3.13.1 (official image)
  • memgraph/lab:3.13.2 (official image)
  • A Railway volume at /var/lib/memgraph

Deployment Dependencies

Implementation Details

ServiceSourceNetworkingStorage
memgraphmemgraph/memgraph:3.13.1private only, Bolt 7687volume at /var/lib/memgraph
labmemgraph/lab:3.13.2public domain on 3000none
VariableDefaultPurpose
MEMGRAPH_USERmemgraphDatabase user created on first boot
MEMGRAPH_PASSWORDgeneratedIts password
QUICK_CONNECT_MG_HOST${{memgraph.RAILWAY_PRIVATE_DOMAIN}}Pre-filled host in Lab
RAILWAY_RUN_UID0Runs as root, matching the root-owned volume

Notes:

  • Connect drivers to bolt://memgraph.railway.internal:7687 from services in the same project.
  • For access from outside Railway, add a TCP proxy for 7687 and enable Bolt TLS; plain Bolt sends passwords unencrypted.
  • Memgraph Community is licensed under the BSL 1.1.

This is a community-maintained deployment package and does not imply affiliation with or endorsement by Memgraph Ltd.

Why Deploy Memgraph on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Memgraph on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Garage S3 Storage
Ultra-light S3 server: fast, open-source, plug-and-play.

PROJETOS
8
View Template
Redis
Self Host Latest Redis with Railway

8
View Template
EasyImg
Simple self-hostable Nuxt.js personal image hosting system.

Muhammad Bilal
0