{
  "manifest_version": "1.0.0",
  "template": {
    "id": "12eac690-8f8e-4093-8691-6ab6cc62ccbe",
    "slug": "memos-5",
    "name": "Memos",
    "description": "Memos — self-hosted Markdown notes, a privacy-first Google Keep alternative",
    "url": "https://railway.com/deploy/memos-5",
    "upstream": {
      "repo_url": "https://github.com/INAPP-Mobile/railway-memos"
    }
  },
  "services": [
    {
      "name": "memos",
      "source": {
        "repo": "https://github.com/INAPP-Mobile/railway-memos"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/opt/memos",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "memos",
      "description": "Timezone (e.g., America/New_York, Europe/London).",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "MEMOS_PORT",
      "service": "memos",
      "description": "Port Memos listens on (default: 5230). Railway injects PORT for routing.",
      "secret": false,
      "strategy": "default",
      "default": "5230"
    },
    {
      "key": "MEMOS_LOG_LEVEL",
      "service": "memos",
      "description": "Log verbosity level. Default: info. Options: debug, info, warn, error.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "MEMOS_ADMIN_EMAIL",
      "service": "memos",
      "description": "Admin email for first-time setup. Set before initial deploy to pre-configure admin account.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "MEMOS_ADMIN_PASSWORD",
      "service": "memos",
      "description": "Admin password for first-time setup. Auto-generated — set before initial deploy to configure admin account.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "memos-5"
      }
    },
    "cli": "railway deploy --template memos-5",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "12eac690-8f8e-4093-8691-6ab6cc62ccbe",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "f14cac3b-0425-4738-86f5-8bfc415a4340": {
                  "icon": null,
                  "name": "memos",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/INAPP-Mobile/railway-memos",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "description": "Timezone (e.g., America/New_York, Europe/London).",
                      "defaultValue": "UTC"
                    },
                    "MEMOS_DSN": {
                      "isOptional": true,
                      "description": "Database connection string. Add a Railway Postgres service to auto-inject. Leave empty for SQLite (default).",
                      "defaultValue": ""
                    },
                    "MEMOS_PORT": {
                      "description": "Port Memos listens on (default: 5230). Railway injects PORT for routing.",
                      "defaultValue": "5230"
                    },
                    "MEMOS_LOG_LEVEL": {
                      "description": "Log verbosity level. Default: info. Options: debug, info, warn, error.",
                      "defaultValue": "info"
                    },
                    "MEMOS_ADMIN_EMAIL": {
                      "description": "Admin email for first-time setup. Set before initial deploy to pre-configure admin account.",
                      "defaultValue": "admin@example.com"
                    },
                    "MEMOS_ADMIN_PASSWORD": {
                      "description": "Admin password for first-time setup. Auto-generated — set before initial deploy to configure admin account.",
                      "defaultValue": "{{MEMOS_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "f14cac3b-0425-4738-86f5-8bfc415a4340": {
                      "mountPath": "/var/opt/memos"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T03:38:38.133Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_721527b0ef5344a888ee",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 113,
    "typical_build_seconds": 21,
    "typical_start_seconds": 10,
    "slowest_service": "memos"
  }
}
