{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6e16a087-02a4-4523-ae7e-746065c8ea13",
    "slug": "subwave",
    "name": "SUB/WAVE | AI DJ Radio Station with Navidrome",
    "description": "Internet radio with an AI DJ that picks and talks, fed by your music",
    "url": "https://railway.com/deploy/subwave",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/navidrome-railway"
    }
  },
  "services": [
    {
      "name": "Navidrome",
      "source": {
        "repo": "https://github.com/nomideusz/navidrome-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "SUBWAVE",
      "source": {
        "repo": "https://github.com/nomideusz/subwave-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/sub-wave",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Navidrome",
      "description": "Port Navidrome listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "4533"
    },
    {
      "key": "ND_ADDRESS",
      "service": "Navidrome",
      "description": "Listen on IPv4 and IPv6 so the station reaches it over the private network",
      "secret": false,
      "strategy": "default",
      "default": "[::]"
    },
    {
      "key": "FILEBROWSER_PASSWORD",
      "service": "Navidrome",
      "description": "Password for the music upload panel (user: admin), set on first boot",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ND_DEVAUTOCREATEADMINPASSWORD",
      "service": "Navidrome",
      "description": "Password of the Navidrome 'admin' user, created on first boot",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "SUBWAVE",
      "description": "Port the built-in Caddy listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "SITE_URL",
      "service": "SUBWAVE",
      "description": "Public URL, used for share cards, canonical links and the sitemap",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ADMIN_PASS",
      "service": "SUBWAVE",
      "description": "Password for /admin, generated at deploy",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ADMIN_USER",
      "service": "SUBWAVE",
      "description": "Username for /admin",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "NAVIDROME_URL",
      "service": "SUBWAVE",
      "description": "Music library (Subsonic API) over the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NAVIDROME_PASS",
      "service": "SUBWAVE",
      "description": "Navidrome password - taken from the Navidrome service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NAVIDROME_USER",
      "service": "SUBWAVE",
      "description": "Navidrome user the DJ reads the library as",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "subwave"
      }
    },
    "cli": "railway deploy --template subwave",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6e16a087-02a4-4523-ae7e-746065c8ea13",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "316d870c-389e-44cd-8bbd-8060766dfae5": {
                  "icon": "https://raw.githubusercontent.com/navidrome/navidrome/master/resources/logo-192x192.png",
                  "name": "Navidrome",
                  "build": {
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/ping",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/navidrome-railway",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Navidrome listens on - leave as is",
                      "defaultValue": "4533"
                    },
                    "ND_ADDRESS": {
                      "isOptional": false,
                      "description": "Listen on IPv4 and IPv6 so the station reaches it over the private network",
                      "defaultValue": "[::]"
                    },
                    "FILEBROWSER_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the music upload panel (user: admin), set on first boot",
                      "defaultValue": "{{FILEBROWSER_PASSWORD}}"
                    },
                    "ND_DEVAUTOCREATEADMINPASSWORD": {
                      "isOptional": false,
                      "description": "Password of the Navidrome 'admin' user, created on first boot",
                      "defaultValue": "{{ND_DEVAUTOCREATEADMINPASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4533": {
                        "port": 4533
                      },
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "316d870c-389e-44cd-8bbd-8060766dfae5": {
                      "mountPath": "/data"
                    }
                  }
                },
                "3f0595fe-e446-4387-b793-6d35f0346902": {
                  "icon": "https://raw.githubusercontent.com/perminder-klair/subwave/8f4c74dafa5d730bd3ca3763106e0c7462c38b5e/app/assets/icon.png",
                  "name": "SUBWAVE",
                  "build": {
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/subwave-railway",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the built-in Caddy listens on - leave as is",
                      "defaultValue": "80"
                    },
                    "SITE_URL": {
                      "isOptional": false,
                      "description": "Public URL, used for share cards, canonical links and the sitemap",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ADMIN_PASS": {
                      "isOptional": false,
                      "description": "Password for /admin, generated at deploy",
                      "defaultValue": "{{ADMIN_PASS}}"
                    },
                    "ADMIN_USER": {
                      "isOptional": false,
                      "description": "Username for /admin",
                      "defaultValue": "admin"
                    },
                    "NAVIDROME_URL": {
                      "isOptional": false,
                      "description": "Music library (Subsonic API) over the private network",
                      "defaultValue": "http://${{Navidrome.RAILWAY_PRIVATE_DOMAIN}}:4533"
                    },
                    "NAVIDROME_PASS": {
                      "isOptional": false,
                      "description": "Navidrome password - taken from the Navidrome service",
                      "defaultValue": "${{Navidrome.ND_DEVAUTOCREATEADMINPASSWORD}}"
                    },
                    "NAVIDROME_USER": {
                      "isOptional": false,
                      "description": "Navidrome user the DJ reads the library as",
                      "defaultValue": "admin"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "3f0595fe-e446-4387-b793-6d35f0346902": {
                      "mountPath": "/var/sub-wave"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Navidrome",
      "method": "GET",
      "path": "/ping",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-06T04:14:42.626Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-04T11:49:09.537Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_02a26724fcc24b6db88f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 175,
    "typical_build_seconds": 91,
    "typical_start_seconds": 20,
    "slowest_service": "SUBWAVE"
  }
}
