{
  "manifest_version": "1.0.0",
  "template": {
    "id": "245e1712-89e4-4b4b-9f04-4159bf4a4257",
    "slug": "mem0-w-dashboard",
    "name": "Mem0 (w/ Dashboard)",
    "description": "Self-hosted Mem0 memory layer for AI agents, with dashboard and pgvector",
    "url": "https://railway.com/deploy/mem0-w-dashboard",
    "upstream": {
      "image": "ghcr.io/hmseeb/mem0-api:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "mem0",
      "source": {
        "image": "ghcr.io/hmseeb/mem0-api:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/history",
      "http": true
    },
    {
      "name": "pgvector",
      "source": {
        "image": "pgvector/pgvector:pg17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "dashboard",
      "source": {
        "image": "ghcr.io/hmseeb/mem0-dashboard:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "mem0",
      "description": "Port the API listens on",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "JWT_SECRET",
      "service": "mem0",
      "description": "Signing key for login sessions, generated per deploy",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "APP_DB_NAME",
      "service": "mem0",
      "description": "Database holding accounts and API keys",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_DB",
      "service": "mem0",
      "description": "Database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DASHBOARD_URL",
      "service": "mem0",
      "description": "Address the dashboard is served from, used as the allowed browser origin",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "mem0",
      "description": "Private hostname of the database service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_PORT",
      "service": "mem0",
      "description": "Database port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "POSTGRES_USER",
      "service": "mem0",
      "description": "Database username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEM0_TELEMETRY",
      "service": "mem0",
      "description": "Anonymous usage events to mem0. Set to false to opt out.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "mem0",
      "description": "Your OpenAI API key. Memories are extracted and embedded through it.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HISTORY_DB_PATH",
      "service": "mem0",
      "description": "Memory change history file, on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/app/history/history.db"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "mem0",
      "description": "Database password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEM0_DEFAULT_LLM_MODEL",
      "service": "mem0",
      "description": "Model used to extract memories from conversations",
      "secret": false,
      "strategy": "default",
      "default": "gpt-5-mini"
    },
    {
      "key": "POSTGRES_COLLECTION_NAME",
      "service": "mem0",
      "description": "Table holding memory vectors",
      "secret": false,
      "strategy": "default",
      "default": "memories"
    },
    {
      "key": "MEM0_DEFAULT_EMBEDDER_MODEL",
      "service": "mem0",
      "description": "Model used to embed memories for search",
      "secret": false,
      "strategy": "default",
      "default": "text-embedding-3-small"
    },
    {
      "key": "PGDATA",
      "service": "pgvector",
      "description": "Data directory, a subdirectory of the volume mount",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "pgvector",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_USER",
      "service": "pgvector",
      "description": "Database username",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "pgvector",
      "description": "Run as root so postgres can own the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "pgvector",
      "description": "Database password, generated per deploy",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "dashboard",
      "description": "Port the dashboard listens on",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "API_INTERNAL_URL",
      "service": "dashboard",
      "description": "Private address of the API, used for server side calls",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NEXT_PUBLIC_API_URL",
      "service": "dashboard",
      "description": "Public address of the API, used by the browser",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_INSTANCE_NAME",
      "service": "dashboard",
      "description": "Name shown in the dashboard header",
      "secret": false,
      "strategy": "default",
      "default": "Mem0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mem0-w-dashboard"
      }
    },
    "cli": "railway deploy --template mem0-w-dashboard",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "245e1712-89e4-4b4b-9f04-4159bf4a4257",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "090c17b5-e933-440e-970a-8c98cf7f1917": {
                  "icon": "https://raw.githubusercontent.com/mem0ai/mem0/main/docs/logo/favicon.png",
                  "name": "mem0",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/auth/setup-status",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/hmseeb/mem0-api:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the API listens on",
                      "defaultValue": "8000"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Signing key for login sessions, generated per deploy",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "APP_DB_NAME": {
                      "isOptional": false,
                      "description": "Database holding accounts and API keys",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "${{pgvector.POSTGRES_DB}}"
                    },
                    "DASHBOARD_URL": {
                      "isOptional": false,
                      "description": "Address the dashboard is served from, used as the allowed browser origin",
                      "defaultValue": "https://${{dashboard.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": false,
                      "description": "Private hostname of the database service",
                      "defaultValue": "${{pgvector.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "POSTGRES_PORT": {
                      "isOptional": false,
                      "description": "Database port",
                      "defaultValue": "5432"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database username",
                      "defaultValue": "${{pgvector.POSTGRES_USER}}"
                    },
                    "MEM0_TELEMETRY": {
                      "isOptional": false,
                      "description": "Anonymous usage events to mem0. Set to false to opt out.",
                      "defaultValue": "true"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "Your OpenAI API key. Memories are extracted and embedded through it.",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "HISTORY_DB_PATH": {
                      "isOptional": false,
                      "description": "Memory change history file, on the volume",
                      "defaultValue": "/app/history/history.db"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password",
                      "defaultValue": "${{pgvector.POSTGRES_PASSWORD}}"
                    },
                    "MEM0_DEFAULT_LLM_MODEL": {
                      "isOptional": false,
                      "description": "Model used to extract memories from conversations",
                      "defaultValue": "gpt-5-mini"
                    },
                    "POSTGRES_COLLECTION_NAME": {
                      "isOptional": false,
                      "description": "Table holding memory vectors",
                      "defaultValue": "memories"
                    },
                    "MEM0_DEFAULT_EMBEDDER_MODEL": {
                      "isOptional": false,
                      "description": "Model used to embed memories for search",
                      "defaultValue": "text-embedding-3-small"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  },
                  "volumeMounts": {
                    "a64147f7-0f90-41b5-b155-8265fae37f87": {
                      "mountPath": "/app/history"
                    }
                  }
                },
                "85c07dd2-ec28-4127-933b-9cee43f67cb0": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgres.svg",
                  "name": "pgvector",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:pg17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory, a subdirectory of the volume mount",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database username",
                      "defaultValue": "postgres"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Run as root so postgres can own the volume",
                      "defaultValue": "0"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Database password, generated per deploy",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "a532737e-a255-426b-b5c9-e8b8b8a04499": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "d30bd412-8a37-4a6d-8355-d600b75e4715": {
                  "icon": "https://raw.githubusercontent.com/mem0ai/mem0/main/docs/logo/favicon.png",
                  "name": "dashboard",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/hmseeb/mem0-dashboard:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the dashboard listens on",
                      "defaultValue": "3000"
                    },
                    "API_INTERNAL_URL": {
                      "isOptional": false,
                      "description": "Private address of the API, used for server side calls",
                      "defaultValue": "http://${{mem0.RAILWAY_PRIVATE_DOMAIN}}:8000"
                    },
                    "NEXT_PUBLIC_API_URL": {
                      "isOptional": false,
                      "description": "Public address of the API, used by the browser",
                      "defaultValue": "https://${{mem0.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_PUBLIC_INSTANCE_NAME": {
                      "isOptional": false,
                      "description": "Name shown in the dashboard header",
                      "defaultValue": "Mem0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "mem0",
      "method": "GET",
      "path": "/auth/setup-status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-10-26T16:14:50.905Z",
  "generator_version": "0.1.0"
}
