Skip to main content

Self-Hosting

ArchGraph can be self-hosted using Docker Compose. The infrastructure configuration is maintained in the archgraph-infra repository.

Requirements

  • Docker and Docker Compose
  • 4 vCPU, 8 GB RAM minimum
  • 50 GB disk space

Quick start

git clone https://github.com/Deaxu/archgraph-infra.git
cd archgraph-infra
cp .env.example .env
# Edit .env with your passwords and configuration
./scripts/deploy.sh

Services

ServiceImageMemory
APIghcr.io/deaxu/archgraph-api:latest1 GB
Workerghcr.io/deaxu/archgraph-api:latest2 GB
Neo4jneo4j:5-community2 GB
PostgreSQLpostgres:16-alpine512 MB
Redisredis:7-alpine256 MB

MCP Gateway

For the MCP gateway (Cloudflare Workers), see the archgraph-gateway repository. You can either use the hosted version at mcp.archgraph.dev or deploy your own Worker.

Backups

Use the provided backup script to dump Neo4j and PostgreSQL:

./scripts/backup.sh

This creates database dumps and uploads them to Cloudflare R2 (requires rclone configuration).