{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9c8282b7-5062-4a53-8f36-d5188310f8f8",
    "slug": "memgraph-memgraph-lab",
    "name": "Memgraph + Memgraph Lab",
    "description": "[Updated Aug 2026] Production Ready Memgraph Instance with Memgraph Lab",
    "url": "https://railway.com/deploy/memgraph-memgraph-lab",
    "upstream": {
      "image": "memgraph/lab:3.12.1"
    }
  },
  "services": [
    {
      "name": "Memgraph Lab",
      "source": {
        "image": "memgraph/lab:3.12.1"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Memgraph",
      "source": {
        "image": "memgraph/memgraph-mage:3.12.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/memgraph",
      "tcp_ports": [
        7687
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Memgraph Lab",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "QUICK_CONNECT_MG_HOST",
      "service": "Memgraph Lab",
      "description": "Provide a value for QUICK_CONNECT_MG_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QUICK_CONNECT_MG_PORT",
      "service": "Memgraph Lab",
      "description": "Provide a value for QUICK_CONNECT_MG_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "7687"
    },
    {
      "key": "BOLT_URL",
      "service": "Memgraph",
      "description": "Provide a value for BOLT_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PYTHONPATH",
      "service": "Memgraph",
      "description": "Provide a value for PYTHONPATH.",
      "secret": false,
      "strategy": "default",
      "default": "/home/memgraph/.local/lib/python3.12/site-packages"
    },
    {
      "key": "MEMGRAPH_USER",
      "service": "Memgraph",
      "description": "Provide a value for MEMGRAPH_USER.",
      "secret": false,
      "strategy": "default",
      "default": "memgraph"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Memgraph",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "BOLT_PRIVATE_URL",
      "service": "Memgraph",
      "description": "Provide a value for BOLT_PRIVATE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MEMGRAPH_PASSWORD",
      "service": "Memgraph",
      "description": "Provide a value for MEMGRAPH_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MEMGRAPH_MEMORY_LIMIT",
      "service": "Memgraph",
      "description": "Provide a value for MEMGRAPH_MEMORY_LIMIT.",
      "secret": false,
      "strategy": "default",
      "default": "1024"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "memgraph-memgraph-lab"
      }
    },
    "cli": "railway deploy --template memgraph-memgraph-lab",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9c8282b7-5062-4a53-8f36-d5188310f8f8",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "3806ee28-e5ac-4060-bb85-62cd6dfb258a": {
                  "icon": "https://memgraph.com/docs/memgraph-logo-navigation.svg",
                  "name": "Memgraph Lab",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "memgraph/lab:3.12.1"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "3000"
                    },
                    "QUICK_CONNECT_MG_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{Memgraph.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "QUICK_CONNECT_MG_PORT": {
                      "isOptional": false,
                      "defaultValue": "7687"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "5781e363-7eb9-47e4-960b-5087828df2aa": {
                  "icon": "https://memgraph.com/docs/memgraph-logo-navigation.svg",
                  "name": "Memgraph",
                  "deploy": {
                    "startCommand": "sh -c 'exec /usr/lib/memgraph/memgraph --bolt-address=:: --memory-limit=${MEMGRAPH_MEMORY_LIMIT:-1024} --log-level=${MEMGRAPH_LOG_LEVEL:-WARNING} --also-log-to-stderr ${MEMGRAPH_EXTRA_ARGS:-}'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "memgraph/memgraph-mage:3.12.0"
                  },
                  "variables": {
                    "BOLT_URL": {
                      "isOptional": false,
                      "defaultValue": "bolt://${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "PYTHONPATH": {
                      "isOptional": false,
                      "defaultValue": "/home/memgraph/.local/lib/python3.12/site-packages"
                    },
                    "MEMGRAPH_USER": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "memgraph"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "defaultValue": "0"
                    },
                    "BOLT_PRIVATE_URL": {
                      "isOptional": false,
                      "defaultValue": "bolt://${{RAILWAY_PRIVATE_DOMAIN}}:7687"
                    },
                    "MEMGRAPH_PASSWORD": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{MEMGRAPH_PASSWORD}}"
                    },
                    "MEMGRAPH_MEMORY_LIMIT": {
                      "isOptional": false,
                      "defaultValue": "1024"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "7687": {}
                    }
                  },
                  "volumeMounts": {
                    "5781e363-7eb9-47e4-960b-5087828df2aa": {
                      "mountPath": "/var/lib/memgraph",
                      "backupSchedules": [
                        "MONTHLY",
                        "WEEKLY",
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Memgraph Lab",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T01:28:54.945Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_f357ad0477044284a237",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 27,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "Memgraph Lab"
  }
}
