{
  "manifest_version": "1.0.0",
  "template": {
    "id": "596cadb0-5c4f-42b6-b2ae-a5b7dab26c6a",
    "slug": "marmot",
    "name": "Marmot",
    "description": "The open-source context layer for AI agents.",
    "url": "https://railway.com/deploy/marmot",
    "upstream": {
      "repo_url": "https://github.com/RockinPaul/marmot_railway_template"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "marmot",
      "source": {
        "repo": "https://github.com/RockinPaul/marmot_railway_template"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data directory inside the volume. A subdirectory is required because the volume root holds lost+found.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database Marmot stores its catalog in.",
      "secret": false,
      "strategy": "default",
      "default": "marmot"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database role Marmot connects as.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Generated per deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "marmot",
      "description": "Port Marmot listens on. Railway probes this variable for the healthcheck, so changing it moves both the server and the probe.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "MARMOT_DATABASE_HOST",
      "service": "marmot",
      "description": "Provide a value for MARMOT_DATABASE_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MARMOT_DATABASE_NAME",
      "service": "marmot",
      "description": "Provide a value for MARMOT_DATABASE_NAME.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MARMOT_DATABASE_PORT",
      "service": "marmot",
      "description": "Postgres port.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "MARMOT_DATABASE_USER",
      "service": "marmot",
      "description": "Provide a value for MARMOT_DATABASE_USER.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MARMOT_ADMIN_PASSWORD",
      "service": "marmot",
      "description": "Password for the admin account. Marmot ships as admin:admin; this template replaces that on first boot, before the service accepts a public request, and refuses to start without a password of at least 12 characters.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MARMOT_ENCRYPTION_SEED",
      "service": "marmot",
      "description": "Seed the XChaCha20-Poly1305 key for stored pipeline credentials is derived from. Keep it: losing it means losing access to those credentials.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MARMOT_SERVER_ROOT_URL",
      "service": "marmot",
      "description": "Provide a value for MARMOT_SERVER_ROOT_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MARMOT_DATABASE_SSLMODE",
      "service": "marmot",
      "description": "Postgres runs with SSL on Railway.",
      "secret": false,
      "strategy": "default",
      "default": "require"
    },
    {
      "key": "MARMOT_DATABASE_PASSWORD",
      "service": "marmot",
      "description": "Provide a value for MARMOT_DATABASE_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "marmot"
      }
    },
    "cli": "railway deploy --template marmot",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "596cadb0-5c4f-42b6-b2ae-a5b7dab26c6a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "9e786539-dd88-43a3-9025-9ecc2fd569c1": {
                  "icon": null,
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data directory inside the volume. A subdirectory is required because the volume root holds lost+found.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database Marmot stores its catalog in.",
                      "defaultValue": "marmot"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database role Marmot connects as.",
                      "defaultValue": "postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated per deployment.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "9e786539-dd88-43a3-9025-9ecc2fd569c1": {
                      "sizeMB": 1024,
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "ae1065d5-fcf8-4718-832e-99bae6416c85": {
                  "icon": null,
                  "name": "marmot",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/RockinPaul/marmot_railway_template",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Marmot listens on. Railway probes this variable for the healthcheck, so changing it moves both the server and the probe.",
                      "defaultValue": "8080"
                    },
                    "MARMOT_DATABASE_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MARMOT_DATABASE_NAME": {
                      "isOptional": false,
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "MARMOT_DATABASE_PORT": {
                      "isOptional": false,
                      "description": "Postgres port.",
                      "defaultValue": "5432"
                    },
                    "MARMOT_DATABASE_USER": {
                      "isOptional": false,
                      "defaultValue": "${{Postgres.POSTGRES_USER}}"
                    },
                    "MARMOT_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the admin account. Marmot ships as admin:admin; this template replaces that on first boot, before the service accepts a public request, and refuses to start without a password of at least 12 characters.",
                      "defaultValue": "{{MARMOT_ADMIN_PASSWORD}}"
                    },
                    "MARMOT_ENCRYPTION_SEED": {
                      "isOptional": false,
                      "description": "Seed the XChaCha20-Poly1305 key for stored pipeline credentials is derived from. Keep it: losing it means losing access to those credentials.",
                      "defaultValue": "{{MARMOT_ENCRYPTION_SEED}}"
                    },
                    "MARMOT_SERVER_ROOT_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MARMOT_DATABASE_SSLMODE": {
                      "isOptional": false,
                      "description": "Postgres runs with SSL on Railway.",
                      "defaultValue": "require"
                    },
                    "MARMOT_DATABASE_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "ae1065d5-fcf8-4718-832e-99bae6416c85": {
                      "sizeMB": 1024,
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "marmot",
      "method": "GET",
      "path": "/readyz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-16T22:14:52.145Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-16T19:51:52.243Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_8734898824a14d6290c7",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 232,
    "typical_build_seconds": 162,
    "typical_start_seconds": 51,
    "slowest_service": "marmot"
  }
}
