{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2e48e4d7-38a0-4ce0-8c83-879d5aa7c59a",
    "slug": "libsql-primary-node",
    "name": "libSQL - Primary Node",
    "description": "SQLite with features like embedded replicas and remote access.",
    "url": "https://railway.com/deploy/libsql-primary-node",
    "upstream": {
      "image": "ghcr.io/tursodatabase/libsql-server:latest"
    }
  },
  "services": [
    {
      "name": "LibSQL- Primary Node",
      "source": {
        "image": "ghcr.io/tursodatabase/libsql-server:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/sqld/",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "SQLD_NODE",
      "service": "LibSQL- Primary Node",
      "description": "Define It's a primary or replica",
      "secret": false,
      "strategy": "default",
      "default": "primary"
    },
    {
      "key": "SQLD_DB_PATH",
      "service": "LibSQL- Primary Node",
      "description": "Define where the storage is saved",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/sqld/"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "libsql-primary-node"
      }
    },
    "cli": "railway deploy --template libsql-primary-node",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2e48e4d7-38a0-4ce0-8c83-879d5aa7c59a",
            "serializedConfig": {
              "services": {
                "0c965754-cacd-4f43-bcb4-520195266276": {
                  "icon": "https://turso.tech/favicon.ico",
                  "name": "LibSQL- Primary Node",
                  "source": {
                    "image": "ghcr.io/tursodatabase/libsql-server:latest"
                  },
                  "variables": {
                    "SQLD_NODE": {
                      "isOptional": false,
                      "description": "Define It's a primary or replica",
                      "defaultValue": "primary"
                    },
                    "SQLD_DB_PATH": {
                      "isOptional": false,
                      "description": "Define where the storage is saved",
                      "defaultValue": "/var/lib/sqld/"
                    }
                  },
                  "volumeMounts": {
                    "0c965754-cacd-4f43-bcb4-520195266276": {
                      "mountPath": "/var/lib/sqld/",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T16:15:12.787Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T12:16:19.680Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_5c03d7dccc134dff8158",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 60,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "LibSQL- Primary Node"
  }
}
