{
  "manifest_version": "1.0.0",
  "template": {
    "id": "80a3d7f8-c692-4568-8e4e-98c637cd6174",
    "slug": "light-phone-luma-dashboard",
    "name": "Light Phone Luma Dashboard",
    "description": "Self-hosted dashboard for the Luma launcher on the Light Phone III",
    "url": "https://railway.com/deploy/light-phone-luma-dashboard",
    "upstream": {
      "image": "ghcr.io/vbbot/luma-dashboard-web:latest"
    }
  },
  "services": [
    {
      "name": "backend",
      "source": {
        "image": "ghcr.io/vbbot/luma-dashboard-backend:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/convex/data",
      "http": false
    },
    {
      "name": "web",
      "source": {
        "image": "ghcr.io/vbbot/luma-dashboard-web:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "INSTANCE_SECRET",
      "service": "backend",
      "description": "Root secret of the backend, generated for you. Admin keys and encryption keys come from it. Keep it private and never change it once there is data.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CONVEX_CLOUD_ORIGIN",
      "service": "backend",
      "description": "Public HTTPS address of the dashboard, used for Habitica webhooks. Change it if you add a custom domain to the web service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SITE_UPSTREAM",
      "service": "web",
      "description": "Private address of the backend’s webhook endpoint. Leave as is.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BACKEND_UPSTREAM",
      "service": "web",
      "description": "Private address of the backend’s sync API. Leave as is.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "light-phone-luma-dashboard"
      }
    },
    "cli": "railway deploy --template light-phone-luma-dashboard",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "80a3d7f8-c692-4568-8e4e-98c637cd6174",
            "serializedConfig": {
              "services": {
                "e4f4f444-5e10-41bb-9707-d660430b99f0": {
                  "icon": "https://raw.githubusercontent.com/vbbot/luma-dashboard/integrations/docs/icons/backend.png",
                  "name": "backend",
                  "source": {
                    "image": "ghcr.io/vbbot/luma-dashboard-backend:latest"
                  },
                  "variables": {
                    "GITHUB_TOKEN": {
                      "isOptional": true,
                      "description": "GitHub token with no scopes, for faster App Store refreshes",
                      "defaultValue": ""
                    },
                    "INSTANCE_SECRET": {
                      "isOptional": false,
                      "description": "Root secret of the backend, generated for you. Admin keys and encryption keys come from it. Keep it private and never change it once there is data.",
                      "defaultValue": "{{INSTANCE_SECRET}}"
                    },
                    "CONVEX_CLOUD_ORIGIN": {
                      "isOptional": false,
                      "description": "Public HTTPS address of the dashboard, used for Habitica webhooks. Change it if you add a custom domain to the web service.",
                      "defaultValue": "https://${{web.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "volumeMounts": {
                    "e4f4f444-5e10-41bb-9707-d660430b99f0": {
                      "mountPath": "/convex/data"
                    }
                  }
                },
                "fb868ad7-e2c6-49a1-a726-74f8eebcdcc7": {
                  "icon": "https://raw.githubusercontent.com/vbbot/luma-dashboard/integrations/docs/icons/web.png",
                  "name": "web",
                  "deploy": {
                    "healthcheckPath": "/version"
                  },
                  "source": {
                    "image": "ghcr.io/vbbot/luma-dashboard-web:latest"
                  },
                  "variables": {
                    "SITE_UPSTREAM": {
                      "isOptional": false,
                      "description": "Private address of the backend’s webhook endpoint. Leave as is.",
                      "defaultValue": "${{backend.RAILWAY_PRIVATE_DOMAIN}}:3211"
                    },
                    "BACKEND_UPSTREAM": {
                      "isOptional": false,
                      "description": "Private address of the backend’s sync API. Leave as is.",
                      "defaultValue": "${{backend.RAILWAY_PRIVATE_DOMAIN}}:3210"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "web",
      "method": "GET",
      "path": "/version",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-17T16:14:42.276Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-17T15:37:38.737Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_7c9078a8364643138515",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "CRASHED,DEPLOYING"
      }
    ]
  }
}
