{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2e5ee2c1-ea64-4f9b-95da-dcf6c5dcf3fb",
    "slug": "traceway",
    "name": "Traceway",
    "description": "OpenTelemetry observability with persistent single-node storage",
    "url": "https://railway.com/deploy/traceway",
    "upstream": {
      "image": "ghcr.io/tracewayapp/traceway:v1.19.23-sqlite@sha256:30b6c20f6017bda1ff481cd28043487326ef988c227d80046123aa7c7a42f847"
    }
  },
  "services": [
    {
      "name": "traceway",
      "source": {
        "image": "ghcr.io/tracewayapp/traceway:v1.19.23-sqlite@sha256:30b6c20f6017bda1ff481cd28043487326ef988c227d80046123aa7c7a42f847"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "traceway",
      "description": "Port used by Railway networking and health checks. Keep it aligned with PORTS.",
      "secret": false,
      "strategy": "default",
      "default": "8082"
    },
    {
      "key": "PORTS",
      "service": "traceway",
      "description": "HTTP listener used by Traceway. Keep it aligned with Railway PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8082"
    },
    {
      "key": "JWT_SECRET",
      "service": "traceway",
      "description": "Random 64-character session-signing key generated per deployment. Do not rotate it on an existing deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "APP_BASE_URL",
      "service": "traceway",
      "description": "Public HTTPS origin used in reset and notification links. Keep the Traceway service reference unchanged.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SQLITE_RETENTION_DAYS",
      "service": "traceway",
      "description": "Days to retain SQLite telemetry rows. Set to 0 only to disable pruning.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "SESSION_RECORDING_RETENTION_DAYS",
      "service": "traceway",
      "description": "Days to retain local session recordings under /data. Set to 0 only to disable pruning.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "traceway"
      }
    },
    "cli": "railway deploy --template traceway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2e5ee2c1-ea64-4f9b-95da-dcf6c5dcf3fb",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "6ef3984f-9420-4a76-89b5-c37f8d1c3f58": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-traceway/6e2c283134020eed22911c9d742afc98ca00e97c/assets/traceway-icon.png",
                  "name": "traceway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/tracewayapp/traceway:v1.19.23-sqlite@sha256:30b6c20f6017bda1ff481cd28043487326ef988c227d80046123aa7c7a42f847"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port used by Railway networking and health checks. Keep it aligned with PORTS.",
                      "defaultValue": "8082"
                    },
                    "PORTS": {
                      "isOptional": false,
                      "description": "HTTP listener used by Traceway. Keep it aligned with Railway PORT.",
                      "defaultValue": "8082"
                    },
                    "JWT_SECRET": {
                      "isOptional": false,
                      "description": "Random 64-character session-signing key generated per deployment. Do not rotate it on an existing deployment.",
                      "defaultValue": "{{JWT_SECRET}}"
                    },
                    "APP_BASE_URL": {
                      "isOptional": false,
                      "description": "Public HTTPS origin used in reset and notification links. Keep the Traceway service reference unchanged.",
                      "defaultValue": "https://${{traceway.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SQLITE_RETENTION_DAYS": {
                      "isOptional": false,
                      "description": "Days to retain SQLite telemetry rows. Set to 0 only to disable pruning.",
                      "defaultValue": "30"
                    },
                    "SESSION_RECORDING_RETENTION_DAYS": {
                      "isOptional": false,
                      "description": "Days to retain local session recordings under /data. Set to 0 only to disable pruning.",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8082": {
                        "port": 8082
                      }
                    }
                  },
                  "volumeMounts": {
                    "6ef3984f-9420-4a76-89b5-c37f8d1c3f58": {
                      "mountPath": "/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "traceway",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "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-04T12:39:59.141Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_3ecea2595a2942038b49",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 17,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "traceway"
  }
}
