{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b493fe26-923d-4795-a2c8-c1281cd3729b",
    "slug": "pulse-baseline",
    "name": "pulse-baseline",
    "description": "Router, Redis, and janitor baseline for Pulse deployments on Railway.",
    "url": "https://railway.com/deploy/pulse-baseline"
  },
  "services": [
    {
      "name": "pulse-janitor",
      "source": {
        "image": "ghcr.io/erwinkn/pulse-railway-janitor:0.1.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "pulse-redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "pulse-router",
      "source": {
        "image": "ghcr.io/erwinkn/pulse-railway-router:0.1.0"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDIS_URL",
      "service": "pulse-redis",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "pulse-redis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "pulse-baseline"
      }
    },
    "cli": "railway deploy --template pulse-baseline",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b493fe26-923d-4795-a2c8-c1281cd3729b",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2fc4cff9-a7a5-4800-94e5-f00534b696fa": {
                  "icon": "https://api.iconify.design/mdi:trash-can.svg?color=%23f59e0b&width=157&height=157",
                  "name": "pulse-janitor",
                  "deploy": {
                    "startCommand": "sh -c 'pulse-railway janitor run'",
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "ghcr.io/erwinkn/pulse-railway-janitor:0.1.0"
                  },
                  "variables": {}
                },
                "ee64d62e-d286-4cfc-880f-32052e885c35": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "pulse-redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2.1"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "ee64d62e-d286-4cfc-880f-32052e885c35": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "f8421ab1-2d6d-4034-bc98-2eb3901014b1": {
                  "icon": "https://api.iconify.design/mdi:router-network.svg?color=%2338bdf8&width=157&height=157",
                  "name": "pulse-router",
                  "deploy": {
                    "startCommand": "sh -c 'uvicorn pulse_railway.router:build_app_from_env --factory --host 0.0.0.0 --port \"${PORT:-8000}\"'",
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/erwinkn/pulse-railway-router:0.1.0"
                  },
                  "variables": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-09T08:40:47.421Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_32458f98efc9470f92dc",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "DEPLOYING,SUCCESS,CRASHED"
      }
    ]
  }
}
