{
  "manifest_version": "1.0.0",
  "template": {
    "id": "54b26f54-bd62-4101-99e3-2bc9cd6e085f",
    "slug": "gonic-music-server",
    "name": "Gonic Music Server",
    "description": "Subsonic music and podcast server with persistent library storage.",
    "url": "https://railway.com/deploy/gonic-music-server",
    "upstream": {
      "repo_url": "https://github.com/orenaksakal/railway-templates"
    }
  },
  "services": [
    {
      "name": "app",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "gonic",
      "source": {
        "repo": "https://github.com/orenaksakal/railway-templates"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "GONIC_DB_PATH",
      "service": "app",
      "description": "Gonic db path for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "/data/gonic.db"
    },
    {
      "key": "GONIC_CACHE_PATH",
      "service": "app",
      "description": "Gonic cache path for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "/data/cache"
    },
    {
      "key": "GONIC_MUSIC_PATH",
      "service": "app",
      "description": "Gonic music path for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "/data/music"
    },
    {
      "key": "GONIC_LISTEN_ADDR",
      "service": "app",
      "description": "Gonic listen addr for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": ":4747"
    },
    {
      "key": "GONIC_PODCAST_PATH",
      "service": "app",
      "description": "Gonic podcast path for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "/data/podcasts"
    },
    {
      "key": "GONIC_SCAN_INTERVAL",
      "service": "app",
      "description": "Gonic scan interval for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "15"
    },
    {
      "key": "GONIC_PLAYLISTS_PATH",
      "service": "app",
      "description": "Gonic playlists path for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "/data/playlists"
    },
    {
      "key": "GONIC_JUKEBOX_ENABLED",
      "service": "app",
      "description": "Gonic jukebox enabled for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "app",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "templates/round9/gonic/Dockerfile"
    },
    {
      "key": "PORT",
      "service": "gonic",
      "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": "gonic",
      "description": "Require owner authentication for every application route.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OWNER_SCOPE",
      "service": "gonic",
      "description": "Protect all application routes.",
      "secret": false,
      "strategy": "default",
      "default": "all"
    },
    {
      "key": "UPSTREAM_HOST",
      "service": "gonic",
      "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": "gonic",
      "description": "Upstream port for gonic. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
      "secret": false,
      "strategy": "default",
      "default": "4747"
    },
    {
      "key": "ACCESS_PASSWORD",
      "service": "gonic",
      "description": "Generated access password. Keep private and preserve with backups.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "gonic",
      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
      "secret": false,
      "strategy": "default",
      "default": "shared/round6-gateway/Dockerfile"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gonic-music-server"
      }
    },
    "cli": "railway deploy --template gonic-music-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "54b26f54-bd62-4101-99e3-2bc9cd6e085f",
            "serializedConfig": {
              "services": {
                "47a517ce-5223-51cc-9c43-a3489a648daa": {
                  "name": "app",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "templates/round9/gonic/Dockerfile"
                  },
                  "deploy": {
                    "requiredMountPath": "/data",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "orenaksakal/railway-templates",
                    "branch": "codex/unique-template-drafts"
                  },
                  "variables": {
                    "GONIC_DB_PATH": {
                      "isOptional": false,
                      "description": "Gonic db path for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "/data/gonic.db"
                    },
                    "GONIC_CACHE_PATH": {
                      "isOptional": false,
                      "description": "Gonic cache path for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "/data/cache"
                    },
                    "GONIC_MUSIC_PATH": {
                      "isOptional": false,
                      "description": "Gonic music path for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "/data/music"
                    },
                    "GONIC_LISTEN_ADDR": {
                      "isOptional": false,
                      "description": "Gonic listen addr for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": ":4747"
                    },
                    "GONIC_PODCAST_PATH": {
                      "isOptional": false,
                      "description": "Gonic podcast path for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "/data/podcasts"
                    },
                    "GONIC_SCAN_INTERVAL": {
                      "isOptional": false,
                      "description": "Gonic scan interval for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "15"
                    },
                    "GONIC_PLAYLISTS_PATH": {
                      "isOptional": false,
                      "description": "Gonic playlists path for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "/data/playlists"
                    },
                    "GONIC_JUKEBOX_ENABLED": {
                      "isOptional": false,
                      "description": "Gonic jukebox enabled for app. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "false"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Repository-relative Dockerfile used to build this service. Keep the supplied path.",
                      "defaultValue": "templates/round9/gonic/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "37bc6bd2-0c0e-51a4-9c99-cfa3cbed2f7f": {
                      "mountPath": "/data"
                    }
                  }
                },
                "6008315b-c0c6-5fb5-9af5-94156ab60fcb": {
                  "name": "gonic",
                  "build": {
                    "builder": "RAILPACK",
                    "dockerfilePath": "shared/round6-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": "Require owner authentication for every application route.",
                      "defaultValue": "true"
                    },
                    "OWNER_SCOPE": {
                      "isOptional": false,
                      "description": "Protect all application routes.",
                      "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 gonic. The supplied value follows the pinned upstream deployment; change only with its configuration guide.",
                      "defaultValue": "4747"
                    },
                    "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/round6-gateway/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "gonic",
      "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-19T07:57:49.313Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d9b66716c46c46bda878",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 122,
    "typical_build_seconds": 20,
    "typical_start_seconds": 10,
    "slowest_service": "gonic"
  }
}
