{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6ea69238-d380-4ed9-8cb4-b62e7804b405",
    "slug": "airstation-private-radio",
    "name": "Airstation Private Radio",
    "description": "Private radio studio and music player with durable tracks and SQLite.",
    "url": "https://railway.com/deploy/airstation-private-radio",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "services": [
    {
      "name": "airstation",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "app",
      "source": {
        "image": "cheatsnake/airstation:1.4.1@sha256:03914d06060e10b12045fee6080fba5838aafe528abeef8e5907ccfb2bbfafb2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "airstation",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "OWNER_AUTH",
      "service": "airstation",
      "description": "Owner auth for airstation. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OWNER_SCOPE",
      "service": "airstation",
      "description": "Owner scope for airstation. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "all"
    },
    {
      "key": "UPSTREAM_HOST",
      "service": "airstation",
      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "UPSTREAM_PORT",
      "service": "airstation",
      "description": "Upstream port for airstation. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "7331"
    },
    {
      "key": "ACCESS_PASSWORD",
      "service": "airstation",
      "description": "Generated access password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "airstation",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "shared/round10-gateway/Dockerfile"
    },
    {
      "key": "AIRSTATION_DB_DIR",
      "service": "app",
      "description": "Airstation db dir for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "/data/database"
    },
    {
      "key": "AIRSTATION_TMP_DIR",
      "service": "app",
      "description": "Airstation tmp dir for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "/tmp/airstation"
    },
    {
      "key": "AIRSTATION_JWT_SIGN",
      "service": "app",
      "description": "Generated airstation jwt sign. Keep private and preserve with backups.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AIRSTATION_HTTP_PORT",
      "service": "app",
      "description": "Airstation http port for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "7331"
    },
    {
      "key": "AIRSTATION_SECRET_KEY",
      "service": "app",
      "description": "Generated airstation secret key. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AIRSTATION_TRACKS_DIR",
      "service": "app",
      "description": "Airstation tracks dir for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "/data/tracks"
    },
    {
      "key": "AIRSTATION_SECURE_COOKIE",
      "service": "app",
      "description": "Airstation secure cookie for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "airstation-private-radio"
      }
    },
    "cli": "railway deploy --template airstation-private-radio",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6ea69238-d380-4ed9-8cb4-b62e7804b405",
            "serializedConfig": {
              "services": {
                "2879011f-b3ed-59c6-bba1-2858c885d072": {
                  "name": "airstation",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "shared/round10-gateway/Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/unique-template-drafts"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "8080"
                    },
                    "OWNER_AUTH": {
                      "isOptional": false,
                      "description": "Owner auth for airstation. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "true"
                    },
                    "OWNER_SCOPE": {
                      "isOptional": false,
                      "description": "Owner scope for airstation. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "all"
                    },
                    "UPSTREAM_HOST": {
                      "isOptional": false,
                      "description": "Upstream host resolved automatically from the linked service. Keep this reference when using the included topology.",
                      "defaultValue": "${{app.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "UPSTREAM_PORT": {
                      "isOptional": false,
                      "description": "Upstream port for airstation. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "7331"
                    },
                    "ACCESS_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated access password. Keep private and preserve with backups.",
                      "defaultValue": "{{ACCESS_PASSWORD}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "shared/round10-gateway/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "c50e34ad-d8e3-5b21-a225-dd0a9d34415f": {
                  "name": "app",
                  "deploy": {
                    "requiredMountPath": "/data",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "cheatsnake/airstation:1.4.1@sha256:03914d06060e10b12045fee6080fba5838aafe528abeef8e5907ccfb2bbfafb2"
                  },
                  "variables": {
                    "AIRSTATION_DB_DIR": {
                      "isOptional": false,
                      "description": "Airstation db dir for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "/data/database"
                    },
                    "AIRSTATION_TMP_DIR": {
                      "isOptional": false,
                      "description": "Airstation tmp dir for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "/tmp/airstation"
                    },
                    "AIRSTATION_JWT_SIGN": {
                      "isOptional": false,
                      "description": "Generated airstation jwt sign. Keep private and preserve with backups.",
                      "defaultValue": "{{AIRSTATION_JWT_SIGN}}"
                    },
                    "AIRSTATION_HTTP_PORT": {
                      "isOptional": false,
                      "description": "Airstation http port for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "7331"
                    },
                    "AIRSTATION_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Generated airstation secret key. Keep private and preserve with backups.",
                      "defaultValue": "{{AIRSTATION_SECRET_KEY}}"
                    },
                    "AIRSTATION_TRACKS_DIR": {
                      "isOptional": false,
                      "description": "Airstation tracks dir for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "/data/tracks"
                    },
                    "AIRSTATION_SECURE_COOKIE": {
                      "isOptional": false,
                      "description": "Airstation secure cookie for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "37bc6bd2-0c0e-51a4-9c99-cfa3cbed2f7f": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "airstation",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T08:28:24.495Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6ec6c7d2009748fe9e07",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 80,
    "typical_build_seconds": 10,
    "typical_start_seconds": 10,
    "slowest_service": "airstation"
  }
}
