{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4a706b1a-63fb-405d-8308-93ae77047478",
    "slug": "libsql-server-or-just-updated-turso-sqli",
    "name": "libSQL Server | (Just Updated) Turso SQLite Database, Auth Token Generated",
    "description": "SQLite-compatible Turso database server, auth token generated",
    "url": "https://railway.com/deploy/libsql-server-or-just-updated-turso-sqli",
    "upstream": {
      "image": "ghcr.io/tursodatabase/libsql-server@sha256:6dd3eb276d9d3604e4a48ac4a999a2e267814732d57d7e94c04ba71482333a67"
    }
  },
  "services": [
    {
      "name": "libsql",
      "source": {
        "image": "ghcr.io/tursodatabase/libsql-server@sha256:6dd3eb276d9d3604e4a48ac4a999a2e267814732d57d7e94c04ba71482333a67"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/sqld",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "LIBSQL_AUTH_TOKEN",
      "service": "libsql",
      "description": "Provide a value for LIBSQL_AUTH_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "libsql-server-or-just-updated-turso-sqli"
      }
    },
    "cli": "railway deploy --template libsql-server-or-just-updated-turso-sqli",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4a706b1a-63fb-405d-8308-93ae77047478",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5bb42fed-4fe8-45d9-87a9-20cc177da0fc": {
                  "icon": null,
                  "name": "libsql",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'export SQLD_DB_PATH=/var/lib/sqld/data SQLD_NODE=standalone SQLD_HTTP_LISTEN_ADDR=\"[::]:$PORT\" SQLD_HTTP_AUTH=\"basic:$(printf \"admin:%s\" \"$LIBSQL_AUTH_TOKEN\" | base64 -w0)\"; echo \"libsql uid=$(id -u) data=$SQLD_DB_PATH\"; exec /usr/local/bin/docker-wrapper.sh /bin/sqld'",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/tursodatabase/libsql-server@sha256:6dd3eb276d9d3604e4a48ac4a999a2e267814732d57d7e94c04ba71482333a67"
                  },
                  "variables": {
                    "LIBSQL_AUTH_TOKEN": {
                      "isOptional": false,
                      "defaultValue": "{{LIBSQL_AUTH_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "5bb42fed-4fe8-45d9-87a9-20cc177da0fc": {
                      "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-10-18T04:14:41.301Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-18T01:14:35.478Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_13f4194efab3418aa7b7",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 20,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "libsql"
  }
}
