{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a01820a0-beb3-4422-bde3-77cbaab85b2b",
    "slug": "maloja-listening-statistics",
    "name": "Maloja Listening Statistics",
    "description": "Personal music scrobbling and listening statistics with persistent storage.",
    "url": "https://railway.com/deploy/maloja-listening-statistics",
    "upstream": {
      "image": "krateng/maloja:latest@sha256:1ccc7f4f78256242ada110efffe255617c974714455199c59a1fb0696ab23734"
    }
  },
  "services": [
    {
      "name": "maloja",
      "source": {
        "image": "krateng/maloja:latest@sha256:1ccc7f4f78256242ada110efffe255617c974714455199c59a1fb0696ab23734"
      },
      "needs_volume": true,
      "volume_mount_path": "/mljdata",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "maloja",
      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
      "secret": false,
      "strategy": "default",
      "default": "42010"
    },
    {
      "key": "MALOJA_NAME",
      "service": "maloja",
      "description": "Maloja name for maloja. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "My listening history"
    },
    {
      "key": "MALOJA_SKIP_SETUP",
      "service": "maloja",
      "description": "Maloja skip setup for maloja. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "MALOJA_DATA_DIRECTORY",
      "service": "maloja",
      "description": "Maloja data directory for maloja. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "/mljdata"
    },
    {
      "key": "MALOJA_FORCE_PASSWORD",
      "service": "maloja",
      "description": "Generated maloja force password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "maloja-listening-statistics"
      }
    },
    "cli": "railway deploy --template maloja-listening-statistics",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a01820a0-beb3-4422-bde3-77cbaab85b2b",
            "serializedConfig": {
              "services": {
                "743ba91e-3b04-5232-ad63-ffe003caf34d": {
                  "name": "maloja",
                  "deploy": {
                    "healthcheckPath": "/",
                    "requiredMountPath": "/mljdata",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 600,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "krateng/maloja:latest@sha256:1ccc7f4f78256242ada110efffe255617c974714455199c59a1fb0696ab23734"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port inside this service. Keep the default to match its Railway public port and health check.",
                      "defaultValue": "42010"
                    },
                    "MALOJA_NAME": {
                      "isOptional": false,
                      "description": "Maloja name for maloja. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "My listening history"
                    },
                    "MALOJA_SKIP_SETUP": {
                      "isOptional": false,
                      "description": "Maloja skip setup for maloja. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "true"
                    },
                    "MALOJA_DATA_DIRECTORY": {
                      "isOptional": false,
                      "description": "Maloja data directory for maloja. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "/mljdata"
                    },
                    "MALOJA_FORCE_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated maloja force password. Keep private and preserve with backups.",
                      "defaultValue": "{{MALOJA_FORCE_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:42010": {
                        "port": 42010
                      }
                    }
                  },
                  "volumeMounts": {
                    "e68bc672-5ad9-596b-af8d-e1c0afc7d16e": {
                      "mountPath": "/mljdata"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "maloja",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T07:54:33.924Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_2d3bef77fe6e48ddad9c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 81,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "maloja"
  }
}
