{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e40604d6-59b4-4a60-8000-b2ee9a0ff6ba",
    "slug": "automem",
    "name": "AutoMem",
    "description": "Long-term memory for AI assistants that recalls past decisions",
    "url": "https://railway.com/deploy/automem",
    "upstream": {
      "image": "ghcr.io/verygoodplugins/mcp-automem:stable"
    }
  },
  "services": [
    {
      "name": "falkordb",
      "source": {
        "image": "falkordb/falkordb:v4.20.3"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/falkordb/data",
      "http": false
    },
    {
      "name": "qdrant",
      "source": {
        "image": "qdrant/qdrant:v1.11.3"
      },
      "needs_volume": true,
      "volume_mount_path": "/qdrant/storage",
      "http": false
    },
    {
      "name": "mcp-automem",
      "source": {
        "image": "ghcr.io/verygoodplugins/mcp-automem:stable"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "automem-graph-viewer",
      "source": {
        "image": "ghcr.io/verygoodplugins/automem-graph-viewer:stable"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "automem",
      "source": {
        "image": "ghcr.io/verygoodplugins/automem:stable"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "BROWSER",
      "service": "falkordb",
      "description": "Disables bundled unauthenticated graph browser",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_ARGS",
      "service": "falkordb",
      "description": "Auth and persistence flags",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "FALKORDB_ARGS",
      "service": "falkordb",
      "description": "Query limits and thread caps",
      "secret": false,
      "strategy": "default",
      "default": "MAX_QUEUED_QUERIES 25 TIMEOUT_DEFAULT 1000 RESULTSET_SIZE 10000 THREAD_COUNT 8 OMP_THREAD_COUNT 8"
    },
    {
      "key": "FALKORDB_PASSWORD",
      "service": "falkordb",
      "description": "Graph database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "falkordb",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "QDRANT__SERVICE__HOST",
      "service": "qdrant",
      "description": "Dual-stack bind, required for private networking",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "QDRANT__SERVICE__API_KEY",
      "service": "qdrant",
      "description": "API key required on every request",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PORT",
      "service": "mcp-automem",
      "description": "HTTP port the bridge binds",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "AUTOMEM_API_URL",
      "service": "mcp-automem",
      "description": "Private API address the bridge proxies",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "mcp-automem",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PORT",
      "service": "automem-graph-viewer",
      "description": "HTTP port the viewer binds",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "automem-graph-viewer",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PORT",
      "service": "automem",
      "description": "HTTP port the API binds",
      "secret": false,
      "strategy": "default",
      "default": "8001"
    },
    {
      "key": "QDRANT_HOST",
      "service": "automem",
      "description": "Private vector database host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "QDRANT_PORT",
      "service": "automem",
      "description": "Vector database REST port",
      "secret": false,
      "strategy": "default",
      "default": "6333"
    },
    {
      "key": "VECTOR_SIZE",
      "service": "automem",
      "description": "Embedding dimension, matches local model",
      "secret": false,
      "strategy": "default",
      "default": "768"
    },
    {
      "key": "FALKORDB_HOST",
      "service": "automem",
      "description": "Private graph database host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "FALKORDB_PORT",
      "service": "automem",
      "description": "Graph database port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "FALKORDB_GRAPH",
      "service": "automem",
      "description": "Graph name inside FalkorDB",
      "secret": false,
      "strategy": "default",
      "default": "memories"
    },
    {
      "key": "QDRANT_API_KEY",
      "service": "automem",
      "description": "Vector database API key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_API_TOKEN",
      "service": "automem",
      "description": "Extra token for admin routes",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "GRAPH_VIEWER_URL",
      "service": "automem",
      "description": "Standalone viewer public URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "AUTOMEM_API_TOKEN",
      "service": "automem",
      "description": "Bearer token for all API routes",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "FALKORDB_PASSWORD",
      "service": "automem",
      "description": "Graph database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "QDRANT_COLLECTION",
      "service": "automem",
      "description": "Vector collection name",
      "secret": false,
      "strategy": "default",
      "default": "memories"
    },
    {
      "key": "AUTOMEM_MODELS_DIR",
      "service": "automem",
      "description": "Model cache path on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/models"
    },
    {
      "key": "EMBEDDING_PROVIDER",
      "service": "automem",
      "description": "Local FastEmbed model, no API key",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "ENABLE_GRAPH_VIEWER",
      "service": "automem",
      "description": "Serves the /viewer entrypoint route",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "VIEWER_ALLOWED_ORIGINS",
      "service": "automem",
      "description": "Browser origins allowed to call API",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "automem",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "automem"
      }
    },
    "cli": "railway deploy --template automem",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e40604d6-59b4-4a60-8000-b2ee9a0ff6ba",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "6d8c319f-3b3a-40b2-a452-3e088fd062ce": {
                  "icon": "https://www.falkordb.com/wp-content/uploads/fbrfg/apple-touch-icon.png",
                  "name": "falkordb",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "falkordb/falkordb:v4.20.3"
                  },
                  "variables": {
                    "BROWSER": {
                      "isOptional": false,
                      "description": "Disables bundled unauthenticated graph browser",
                      "defaultValue": "0"
                    },
                    "REDIS_ARGS": {
                      "isOptional": false,
                      "description": "Auth and persistence flags",
                      "defaultValue": "--requirepass ${{FALKORDB_PASSWORD}} --save 60 1 --appendonly yes --appendfsync everysec"
                    },
                    "FALKORDB_ARGS": {
                      "isOptional": false,
                      "description": "Query limits and thread caps",
                      "defaultValue": "MAX_QUEUED_QUERIES 25 TIMEOUT_DEFAULT 1000 RESULTSET_SIZE 10000 THREAD_COUNT 8 OMP_THREAD_COUNT 8"
                    },
                    "FALKORDB_PASSWORD": {
                      "isOptional": false,
                      "description": "Graph database password",
                      "defaultValue": "{{FALKORDB_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "volumeMounts": {
                    "6d8c319f-3b3a-40b2-a452-3e088fd062ce": {
                      "mountPath": "/var/lib/falkordb/data"
                    }
                  }
                },
                "867b912c-4369-49fb-a042-0ebe1f1f0411": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/qdrant.svg",
                  "name": "qdrant",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "qdrant/qdrant:v1.11.3"
                  },
                  "variables": {
                    "QDRANT__SERVICE__HOST": {
                      "isOptional": false,
                      "description": "Dual-stack bind, required for private networking",
                      "defaultValue": "::"
                    },
                    "QDRANT__SERVICE__API_KEY": {
                      "isOptional": false,
                      "description": "API key required on every request",
                      "defaultValue": "{{QDRANT__SERVICE__API_KEY}}"
                    }
                  },
                  "volumeMounts": {
                    "867b912c-4369-49fb-a042-0ebe1f1f0411": {
                      "mountPath": "/qdrant/storage"
                    }
                  }
                },
                "bf3b7d8d-088d-40db-b252-6ee53cd05bfe": {
                  "icon": "https://automem.ai/favicon.svg",
                  "name": "mcp-automem",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/verygoodplugins/mcp-automem:stable"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port the bridge binds",
                      "defaultValue": "8080"
                    },
                    "AUTOMEM_API_URL": {
                      "isOptional": false,
                      "description": "Private API address the bridge proxies",
                      "defaultValue": "http://${{automem.RAILWAY_PRIVATE_DOMAIN}}:8001"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "c6f04082-db71-41f9-87d7-40fdbdd00117": {
                  "icon": "https://automem.ai/favicon.svg",
                  "name": "automem-graph-viewer",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/verygoodplugins/automem-graph-viewer:stable"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port the viewer binds",
                      "defaultValue": "3000"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "ff232475-5649-48d0-8b15-53ce029b649b": {
                  "icon": "https://automem.ai/favicon.svg",
                  "name": "automem",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/verygoodplugins/automem:stable"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port the API binds",
                      "defaultValue": "8001"
                    },
                    "QDRANT_HOST": {
                      "isOptional": false,
                      "description": "Private vector database host",
                      "defaultValue": "${{qdrant.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "QDRANT_PORT": {
                      "isOptional": false,
                      "description": "Vector database REST port",
                      "defaultValue": "6333"
                    },
                    "VECTOR_SIZE": {
                      "isOptional": false,
                      "description": "Embedding dimension, matches local model",
                      "defaultValue": "768"
                    },
                    "FALKORDB_HOST": {
                      "isOptional": false,
                      "description": "Private graph database host",
                      "defaultValue": "${{falkordb.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "FALKORDB_PORT": {
                      "isOptional": false,
                      "description": "Graph database port",
                      "defaultValue": "6379"
                    },
                    "FALKORDB_GRAPH": {
                      "isOptional": false,
                      "description": "Graph name inside FalkorDB",
                      "defaultValue": "memories"
                    },
                    "QDRANT_API_KEY": {
                      "isOptional": false,
                      "description": "Vector database API key",
                      "defaultValue": "${{qdrant.QDRANT__SERVICE__API_KEY}}"
                    },
                    "ADMIN_API_TOKEN": {
                      "isOptional": false,
                      "description": "Extra token for admin routes",
                      "defaultValue": "{{ADMIN_API_TOKEN}}"
                    },
                    "GRAPH_VIEWER_URL": {
                      "isOptional": false,
                      "description": "Standalone viewer public URL",
                      "defaultValue": "https://${{automem-graph-viewer.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "AUTOMEM_API_TOKEN": {
                      "isOptional": false,
                      "description": "Bearer token for all API routes",
                      "defaultValue": "{{AUTOMEM_API_TOKEN}}"
                    },
                    "FALKORDB_PASSWORD": {
                      "isOptional": false,
                      "description": "Graph database password",
                      "defaultValue": "${{falkordb.FALKORDB_PASSWORD}}"
                    },
                    "QDRANT_COLLECTION": {
                      "isOptional": false,
                      "description": "Vector collection name",
                      "defaultValue": "memories"
                    },
                    "AUTOMEM_MODELS_DIR": {
                      "isOptional": false,
                      "description": "Model cache path on the volume",
                      "defaultValue": "/data/models"
                    },
                    "EMBEDDING_PROVIDER": {
                      "isOptional": false,
                      "description": "Local FastEmbed model, no API key",
                      "defaultValue": "local"
                    },
                    "ENABLE_GRAPH_VIEWER": {
                      "isOptional": false,
                      "description": "Serves the /viewer entrypoint route",
                      "defaultValue": "true"
                    },
                    "VIEWER_ALLOWED_ORIGINS": {
                      "isOptional": false,
                      "description": "Browser origins allowed to call API",
                      "defaultValue": "https://${{automem-graph-viewer.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8001": {
                        "port": 8001
                      }
                    }
                  },
                  "volumeMounts": {
                    "ff232475-5649-48d0-8b15-53ce029b649b": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "mcp-automem",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T15:47:53.892Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_36e628e5b1574ee0909f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 71,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "mcp-automem"
  }
}
