{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d7e4b128-dbb3-417a-aa1b-7a123ea03a15",
    "slug": "p121Tx",
    "name": "libSQL Server",
    "description": "libSQL is SQLite for modern applications",
    "url": "https://railway.com/deploy/p121Tx",
    "upstream": {
      "image": "ghcr.io/tursodatabase/libsql-server:latest"
    }
  },
  "services": [
    {
      "name": "libSQL",
      "source": {
        "image": "ghcr.io/tursodatabase/libsql-server:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/sqld",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "libSQL",
      "description": "The port that libSQL runs on",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "libSQL",
      "description": "Allows libSQL to access the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "SQLD_PUBLIC_URL",
      "service": "libSQL",
      "description": "Public URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SQLD_PRIVATE_URL",
      "service": "libSQL",
      "description": "Private URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SQLD_PUBLIC_HOST",
      "service": "libSQL",
      "description": "Public hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SQLD_PUBLIC_PORT",
      "service": "libSQL",
      "description": "Public port",
      "secret": false,
      "strategy": "default",
      "default": "443"
    },
    {
      "key": "SQLD_PRIVATE_HOST",
      "service": "libSQL",
      "description": "Private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SQLD_PRIVATE_PORT",
      "service": "libSQL",
      "description": "Private port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SQLD_HTTP_LISTEN_ADDR",
      "service": "libSQL",
      "description": "The address to listen on",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "p121Tx"
      }
    },
    "cli": "railway deploy --template p121Tx",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d7e4b128-dbb3-417a-aa1b-7a123ea03a15",
            "serializedConfig": {
              "services": {
                "71900145-50ed-4fa2-91f2-332c54219c5b": {
                  "icon": "https://res.cloudinary.com/h5kvzw/image/upload/v1710868311/favicon_ppn4lv.svg",
                  "name": "libSQL",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "ghcr.io/tursodatabase/libsql-server:latest"
                  },
                  "variables": {
                    "PORT": {
                      "description": "The port that libSQL runs on",
                      "defaultValue": "${{SQLD_PRIVATE_PORT}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Allows libSQL to access the volume",
                      "defaultValue": "0"
                    },
                    "SQLD_PUBLIC_URL": {
                      "description": "Public URL",
                      "defaultValue": "libsql://${{SQLD_PUBLIC_HOST}}:${{SQLD_PUBLIC_PORT}}"
                    },
                    "SQLD_PRIVATE_URL": {
                      "description": "Private URL",
                      "defaultValue": "libsql://${{SQLD_PRIVATE_HOST}}:${{SQLD_PRIVATE_PORT}}?tls=0"
                    },
                    "SQLD_PUBLIC_HOST": {
                      "description": "Public hostname",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SQLD_PUBLIC_PORT": {
                      "description": "Public port",
                      "defaultValue": "443"
                    },
                    "SQLD_PRIVATE_HOST": {
                      "description": "Private hostname",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SQLD_PRIVATE_PORT": {
                      "description": "Private port",
                      "defaultValue": "8080"
                    },
                    "SQLD_HTTP_LISTEN_ADDR": {
                      "description": "The address to listen on",
                      "defaultValue": "[::]:${{SQLD_PRIVATE_PORT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "71900145-50ed-4fa2-91f2-332c54219c5b": {
                      "mountPath": "/var/lib/sqld"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "libSQL",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T13:47:49.798Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_52d48742065b4dd3851f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 82,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "libSQL"
  }
}
