{
  "manifest_version": "1.0.0",
  "template": {
    "id": "db382d6d-a123-402a-becb-9b70cd1db207",
    "slug": "mem0-v2-ai-memory-layer",
    "name": "Mem0 v2 AI Memory Layer",
    "description": "Persistent memory for AI agents: REST API, dashboard and pgvector storage.",
    "url": "https://railway.com/deploy/mem0-v2-ai-memory-layer",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/mem0-railway"
    }
  },
  "services": [
    {
      "name": "Mem0 Log Pruner",
      "source": {
        "repo": "https://github.com/baranberkay96/mem0-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Mem0 Dashboard",
      "source": {
        "repo": "https://github.com/baranberkay96/mem0-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Mem0 API",
      "source": {
        "repo": "https://github.com/baranberkay96/mem0-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/history",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "pgvector/pgvector:0.8.7-pg17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "APP_DB_NAME",
      "service": "Mem0 Log Pruner",
      "description": "App database that holds the request_logs table.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "Mem0 Log Pruner",
      "description": "Private hostname of Postgres.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PORT",
      "service": "Mem0 Log Pruner",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Mem0 Log Pruner",
      "description": "Postgres user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Mem0 Log Pruner",
      "description": "Postgres password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REQUEST_LOG_RETENTION_DAYS",
      "service": "Mem0 Log Pruner",
      "description": "Delete API request log rows older than this many days (upstream default 30).",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PORT",
      "service": "Mem0 Dashboard",
      "description": "Next.js port. Railway routes the domain and the /api/health healthcheck here.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "HOSTNAME",
      "service": "Mem0 Dashboard",
      "description": "Address Next.js binds to. Must not be the container hostname, or the healthcheck cannot connect.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "DASHBOARD_URL",
      "service": "Mem0 Dashboard",
      "description": "Own public origin; an https origin makes the refresh-token cookie Secure.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "API_INTERNAL_URL",
      "service": "Mem0 Dashboard",
      "description": "Private URL the dashboard server uses (setup status, token refresh).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NEXT_PUBLIC_API_URL",
      "service": "Mem0 Dashboard",
      "description": "Public URL of the Mem0 API, called from the browser. Written into the bundle at container start.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_INSTANCE_NAME",
      "service": "Mem0 Dashboard",
      "description": "Name shown in the dashboard header.",
      "secret": false,
      "strategy": "default",
      "default": "Mem0"
    },
    {
      "key": "PORT",
      "service": "Mem0 API",
      "description": "Port uvicorn listens on (0.0.0.0). Railway routes the domain and the healthcheck here.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "JWT_SECRET",
      "service": "Mem0 API",
      "description": "Signs dashboard access and refresh tokens. Rotating it logs every dashboard user out.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "APP_DB_NAME",
      "service": "Mem0 API",
      "description": "Database for users, API keys, request logs and settings (created by the pre-deploy step, migrated by Alembic).",
      "secret": false,
      "strategy": "default",
      "default": "mem0_app"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Mem0 API",
      "description": "Database holding the pgvector memory and entity tables.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_API_KEY",
      "service": "Mem0 API",
      "description": "Server-wide admin key for scripts and agents: send it as the X-API-Key header. Per-user keys can be created in the dashboard.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AUTH_DISABLED",
      "service": "Mem0 API",
      "description": "Keep false. true opens every endpoint without authentication (upstream: local development only).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DASHBOARD_URL",
      "service": "Mem0 API",
      "description": "Public dashboard origin; the only origin allowed by the API's CORS policy.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTGRES_HOST",
      "service": "Mem0 API",
      "description": "Private hostname of the pgvector Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_PORT",
      "service": "Mem0 API",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Mem0 API",
      "description": "Postgres superuser (needed to create the vector extension and the app database).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEM0_TELEMETRY",
      "service": "Mem0 API",
      "description": "Upstream anonymous telemetry (PostHog, at most two events per install). Off in this template; set true to opt in.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "Mem0 API",
      "description": "REQUIRED. OpenAI (or OpenAI-compatible, see OPENAI_BASE_URL) key for memory extraction and embeddings. The API does not boot without it.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "HISTORY_DB_PATH",
      "service": "Mem0 API",
      "description": "SQLite file with the change history of every memory. Lives on the /app/history volume.",
      "secret": false,
      "strategy": "default",
      "default": "/app/history/history.db"
    },
    {
      "key": "MEM0_ADMIN_NAME",
      "service": "Mem0 API",
      "description": "Display name of the bootstrap admin.",
      "secret": false,
      "strategy": "default",
      "default": "Admin"
    },
    {
      "key": "MEM0_ADMIN_EMAIL",
      "service": "Mem0 API",
      "description": "Login email of the dashboard admin created on first deploy (change it later under Settings). Empty = first visitor runs the setup wizard.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Mem0 API",
      "description": "Postgres password, generated on the Postgres service.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MEM0_ADMIN_PASSWORD",
      "service": "Mem0 API",
      "description": "Password of that admin, generated at deploy. Only used while no user exists; change it later in the dashboard.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MEM0_DEFAULT_LLM_MODEL",
      "service": "Mem0 API",
      "description": "Model used to extract facts from conversations (upstream default). Can be changed later in the dashboard Configuration page.",
      "secret": false,
      "strategy": "default",
      "default": "gpt-5-mini"
    },
    {
      "key": "POSTGRES_COLLECTION_NAME",
      "service": "Mem0 API",
      "description": "Table name of the memory embeddings.",
      "secret": false,
      "strategy": "default",
      "default": "memories"
    },
    {
      "key": "MEM0_DEFAULT_EMBEDDER_MODEL",
      "service": "Mem0 API",
      "description": "Embedding model (1536 dimensions, upstream default). Changing it after memories exist needs a new collection.",
      "secret": false,
      "strategy": "default",
      "default": "text-embedding-3-small"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Mem0 API",
      "description": "Grace period for in-flight requests on redeploy.",
      "secret": false,
      "strategy": "default",
      "default": "15"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database for the pgvector memory tables (the app database mem0_app is created next to it by the API pre-deploy step).",
      "secret": false,
      "strategy": "default",
      "default": "mem0"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres (private network, no TLS).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mem0-v2-ai-memory-layer"
      }
    },
    "cli": "railway deploy --template mem0-v2-ai-memory-layer",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "db382d6d-a123-402a-becb-9b70cd1db207",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "01bd3327-dc8d-5224-94f3-86ef41766f5a": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mem0.svg",
                  "name": "Mem0 Log Pruner",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "cronSchedule": "30 3 * * *",
                    "startCommand": "sh -c 'cd /app && exec python scripts/prune_request_logs.py'",
                    "restartPolicyType": "NEVER"
                  },
                  "source": {
                    "repo": "baranberkay96/mem0-railway",
                    "branch": "main",
                    "rootDirectory": "/services/api"
                  },
                  "variables": {
                    "APP_DB_NAME": {
                      "isOptional": true,
                      "description": "App database that holds the request_logs table.",
                      "defaultValue": "${{Mem0 API.APP_DB_NAME}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": true,
                      "description": "Private hostname of Postgres.",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "POSTGRES_PORT": {
                      "isOptional": true,
                      "description": "Postgres port.",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "Postgres user.",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": true,
                      "description": "Postgres password.",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "REQUEST_LOG_RETENTION_DAYS": {
                      "isOptional": true,
                      "description": "Delete API request log rows older than this many days (upstream default 30).",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                },
                "0be9a771-a89f-5b73-a068-485d6e8bdfc2": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mem0.svg",
                  "name": "Mem0 Dashboard",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/mem0-railway",
                    "branch": "main",
                    "rootDirectory": "/services/dashboard"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Next.js port. Railway routes the domain and the /api/health healthcheck here.",
                      "defaultValue": "3000"
                    },
                    "HOSTNAME": {
                      "isOptional": true,
                      "description": "Address Next.js binds to. Must not be the container hostname, or the healthcheck cannot connect.",
                      "defaultValue": "0.0.0.0"
                    },
                    "DASHBOARD_URL": {
                      "isOptional": true,
                      "description": "Own public origin; an https origin makes the refresh-token cookie Secure.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "API_INTERNAL_URL": {
                      "isOptional": true,
                      "description": "Private URL the dashboard server uses (setup status, token refresh).",
                      "defaultValue": "http://${{Mem0 API.RAILWAY_PRIVATE_DOMAIN}}:${{Mem0 API.PORT}}"
                    },
                    "NEXT_PUBLIC_API_URL": {
                      "isOptional": true,
                      "description": "Public URL of the Mem0 API, called from the browser. Written into the bundle at container start.",
                      "defaultValue": "https://${{Mem0 API.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_PUBLIC_INSTANCE_NAME": {
                      "isOptional": true,
                      "description": "Name shown in the dashboard header.",
                      "defaultValue": "Mem0"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "1fdc3881-8096-5dd0-878b-c275f6f6e705": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mem0.svg",
                  "name": "Mem0 API",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/docs",
                    "preDeployCommand": [
                      "sh -c 'cd /app && python railway/prepare_db.py && alembic upgrade head && python railway/bootstrap_admin.py'"
                    ],
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "preDeployTimeoutSeconds": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/mem0-railway",
                    "branch": "main",
                    "rootDirectory": "/services/api"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port uvicorn listens on (0.0.0.0). Railway routes the domain and the healthcheck here.",
                      "defaultValue": "8000"
                    },
                    "JWT_SECRET": {
                      "isOptional": true,
                      "description": "Signs dashboard access and refresh tokens. Rotating it logs every dashboard user out.",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "APP_DB_NAME": {
                      "isOptional": true,
                      "description": "Database for users, API keys, request logs and settings (created by the pre-deploy step, migrated by Alembic).",
                      "defaultValue": "mem0_app"
                    },
                    "POSTGRES_DB": {
                      "isOptional": true,
                      "description": "Database holding the pgvector memory and entity tables.",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "ADMIN_API_KEY": {
                      "isOptional": true,
                      "description": "Server-wide admin key for scripts and agents: send it as the X-API-Key header. Per-user keys can be created in the dashboard.",
                      "defaultValue": "{{ADMIN_API_KEY}}"
                    },
                    "AUTH_DISABLED": {
                      "isOptional": true,
                      "description": "Keep false. true opens every endpoint without authentication (upstream: local development only).",
                      "defaultValue": "false"
                    },
                    "DASHBOARD_URL": {
                      "isOptional": true,
                      "description": "Public dashboard origin; the only origin allowed by the API's CORS policy.",
                      "defaultValue": "https://${{Mem0 Dashboard.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTGRES_HOST": {
                      "isOptional": true,
                      "description": "Private hostname of the pgvector Postgres service.",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "POSTGRES_PORT": {
                      "isOptional": true,
                      "description": "Postgres port.",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": true,
                      "description": "Postgres superuser (needed to create the vector extension and the app database).",
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "GOOGLE_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Lets you switch the LLM and/or embedder to Gemini in the dashboard Configuration page.",
                      "defaultValue": ""
                    },
                    "MEM0_TELEMETRY": {
                      "isOptional": true,
                      "description": "Upstream anonymous telemetry (PostHog, at most two events per install). Off in this template; set true to opt in.",
                      "defaultValue": "false"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "REQUIRED. OpenAI (or OpenAI-compatible, see OPENAI_BASE_URL) key for memory extraction and embeddings. The API does not boot without it.",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "HISTORY_DB_PATH": {
                      "isOptional": true,
                      "description": "SQLite file with the change history of every memory. Lives on the /app/history volume.",
                      "defaultValue": "/app/history/history.db"
                    },
                    "MEM0_ADMIN_NAME": {
                      "isOptional": true,
                      "description": "Display name of the bootstrap admin.",
                      "defaultValue": "Admin"
                    },
                    "OPENAI_BASE_URL": {
                      "isOptional": true,
                      "description": "Optional OpenAI-compatible endpoint (OpenRouter, LiteLLM, Azure gateway, ...). Empty = api.openai.com.",
                      "defaultValue": ""
                    },
                    "MEM0_ADMIN_EMAIL": {
                      "isOptional": true,
                      "description": "Login email of the dashboard admin created on first deploy (change it later under Settings). Empty = first visitor runs the setup wizard.",
                      "defaultValue": "admin@example.com"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optional. Lets you switch the LLM to Anthropic in the dashboard Configuration page (embeddings still need OpenAI or Gemini).",
                      "defaultValue": ""
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": true,
                      "description": "Postgres password, generated on the Postgres service.",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "MEM0_ADMIN_PASSWORD": {
                      "isOptional": true,
                      "description": "Password of that admin, generated at deploy. Only used while no user exists; change it later in the dashboard.",
                      "defaultValue": "{{MEM0_ADMIN_PASSWORD}}"
                    },
                    "MEM0_DEFAULT_LLM_MODEL": {
                      "isOptional": true,
                      "description": "Model used to extract facts from conversations (upstream default). Can be changed later in the dashboard Configuration page.",
                      "defaultValue": "gpt-5-mini"
                    },
                    "POSTGRES_COLLECTION_NAME": {
                      "isOptional": true,
                      "description": "Table name of the memory embeddings.",
                      "defaultValue": "memories"
                    },
                    "MEM0_DEFAULT_EMBEDDER_MODEL": {
                      "isOptional": true,
                      "description": "Embedding model (1536 dimensions, upstream default). Changing it after memories exist needs a new collection.",
                      "defaultValue": "text-embedding-3-small"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Grace period for in-flight requests on redeploy.",
                      "defaultValue": "15"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  },
                  "volumeMounts": {
                    "7ab7f5ef-0f83-51d4-9b41-ced1841916f3": {
                      "mountPath": "/app/history"
                    }
                  }
                },
                "f7b0a7af-0abf-5597-850e-823c7f5dbd63": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:0.8.7-pg17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database for the pgvector memory tables (the app database mem0_app is created next to it by the API pre-deploy step).",
                      "defaultValue": "mem0"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres (private network, no TLS).",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "9c5f1aa1-dbc3-5702-87f8-c2dedd4c193e": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Mem0 Dashboard",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-10-11T22:14:38.939Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-11T19:12:26.261Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_9a051042740b4baebd37",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 303,
    "typical_build_seconds": 91,
    "typical_start_seconds": 10,
    "slowest_service": "Mem0 Log Pruner"
  }
}
