{
  "manifest_version": "1.0.0",
  "template": {
    "id": "abb69826-7374-40a2-805d-cf81ae04f170",
    "slug": "your-spotify",
    "name": "Your Spotify",
    "description": "Records your Spotify listening history and charts it as statistics",
    "url": "https://railway.com/deploy/your-spotify",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/your-spotify-railway"
    }
  },
  "services": [
    {
      "name": "MongoDB",
      "source": {
        "image": "mongo:8.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data/db",
      "http": false
    },
    {
      "name": "client",
      "source": {
        "image": "yooooomi/your_spotify_client:1.20.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "gateway",
      "source": {
        "repo": "https://github.com/gridalpha/your-spotify-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "server",
      "source": {
        "image": "yooooomi/your_spotify_server:1.20.0"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "MONGOHOST",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPORT",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "27017"
    },
    {
      "key": "MONGOUSER",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_URL",
      "service": "MongoDB",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MONGOPASSWORD",
      "service": "MongoDB",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MONGO_INITDB_ROOT_PASSWORD",
      "service": "MongoDB",
      "description": "Root password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MONGO_INITDB_ROOT_USERNAME",
      "service": "MongoDB",
      "description": "Root user created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "mongo"
    },
    {
      "key": "PORT",
      "service": "client",
      "description": "Static file server port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "NODE_ENV",
      "service": "client",
      "description": "Serve the production bundle",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "API_ENDPOINT",
      "service": "client",
      "description": "Public API URL with /api prefix",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "gateway",
      "description": "Caddy listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PORT",
      "service": "server",
      "description": "API listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "TIMEZONE",
      "service": "server",
      "description": "Timezone for reported statistics",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "LOG_LEVEL",
      "service": "server",
      "description": "Log verbosity level",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "API_ENDPOINT",
      "service": "server",
      "description": "Public API URL with /api prefix",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MONGO_ENDPOINT",
      "service": "server",
      "description": "Database connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLIENT_ENDPOINT",
      "service": "server",
      "description": "Public dashboard URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "your-spotify"
      }
    },
    "cli": "railway deploy --template your-spotify",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "abb69826-7374-40a2-805d-cf81ae04f170",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2e995a41-d045-4ba4-82e0-573434c22ecf": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mongodb.svg",
                  "name": "MongoDB",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0 --setParameter diagnosticDataCollectionEnabled=false",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mongo:8.0"
                  },
                  "variables": {
                    "MONGOHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "MONGOPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "27017"
                    },
                    "MONGOUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{MONGO_INITDB_ROOT_USERNAME}}"
                    },
                    "MONGO_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "mongodb://${{MONGO_INITDB_ROOT_USERNAME}}:${{MONGO_INITDB_ROOT_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:27017"
                    },
                    "MONGOPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Root password, read by the server",
                      "defaultValue": "{{MONGO_INITDB_ROOT_PASSWORD}}"
                    },
                    "MONGO_INITDB_ROOT_USERNAME": {
                      "isOptional": false,
                      "description": "Root user created on first boot",
                      "defaultValue": "mongo"
                    }
                  },
                  "volumeMounts": {
                    "2e995a41-d045-4ba4-82e0-573434c22ecf": {
                      "mountPath": "/data/db"
                    }
                  }
                },
                "5952c309-f158-44c0-b49f-e12354911012": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/your-spotify.svg",
                  "name": "client",
                  "deploy": {
                    "startCommand": "/bin/sh -c '. /app/apps/client/scripts/run/variables.sh; exec serve -c /app/apps/client/scripts/run/serve.json -s -l tcp://[::]:3000 /app/apps/client/build/'",
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "yooooomi/your_spotify_client:1.20.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Static file server port",
                      "defaultValue": "3000"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Serve the production bundle",
                      "defaultValue": "production"
                    },
                    "API_ENDPOINT": {
                      "isOptional": false,
                      "description": "Public API URL with /api prefix",
                      "defaultValue": "https://${{gateway.RAILWAY_PUBLIC_DOMAIN}}/api"
                    }
                  }
                },
                "9618495d-dc27-4aca-8d29-7ef335e31162": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/caddy.svg",
                  "name": "gateway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/your-spotify-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Caddy listening port",
                      "defaultValue": "8080"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "be8c6b17-3208-43d9-89ea-a4fcdbcebba3": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/your-spotify.svg",
                  "name": "server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "yooooomi/your_spotify_server:1.20.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "API listening port",
                      "defaultValue": "8080"
                    },
                    "TIMEZONE": {
                      "isOptional": false,
                      "description": "Timezone for reported statistics",
                      "defaultValue": "Etc/UTC"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Log verbosity level",
                      "defaultValue": "info"
                    },
                    "API_ENDPOINT": {
                      "isOptional": false,
                      "description": "Public API URL with /api prefix",
                      "defaultValue": "https://${{gateway.RAILWAY_PUBLIC_DOMAIN}}/api"
                    },
                    "MONGO_ENDPOINT": {
                      "isOptional": false,
                      "description": "Database connection string",
                      "defaultValue": "${{MongoDB.MONGO_URL}}/your_spotify?authSource=admin"
                    },
                    "SPOTIFY_PUBLIC": {
                      "isOptional": true,
                      "description": "Spotify application client ID",
                      "defaultValue": ""
                    },
                    "SPOTIFY_SECRET": {
                      "isOptional": true,
                      "description": "Spotify application client secret",
                      "defaultValue": ""
                    },
                    "CLIENT_ENDPOINT": {
                      "isOptional": false,
                      "description": "Public dashboard URL",
                      "defaultValue": "https://${{gateway.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "gateway",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-16T22:14:52.145Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-16T20:15:58.012Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ec4d976e30ac48a68962",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 222,
    "typical_build_seconds": 0,
    "typical_start_seconds": 20,
    "slowest_service": "client"
  }
}
