{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6662bf98-8608-4aaf-b31a-ecea927d7264",
    "slug": "tribes-server",
    "name": "Tribes Server",
    "description": "This template will run a Tribes server instance.",
    "url": "https://railway.com/deploy/tribes-server",
    "upstream": {
      "repo_url": "https://github.com/ShariqT/tribes-server-cloud"
    }
  },
  "services": [
    {
      "name": "tribes-server-cloud",
      "source": {
        "repo": "https://github.com/ShariqT/tribes-server-cloud"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/keys",
      "http": true
    },
    {
      "name": "redis-stack-server",
      "source": {
        "image": "redis/redis-stack-server"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "tribes-server-cloud",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "APP_KEY",
      "service": "tribes-server-cloud",
      "description": "The value that will secure cookies and session data",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDIS_DB",
      "service": "tribes-server-cloud",
      "description": "The database index for Redis",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_HOST",
      "service": "tribes-server-cloud",
      "description": "Provide a value for REDIS_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_PORT",
      "service": "tribes-server-cloud",
      "description": "The port that Redis is listening on",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "PUBLIC_ACCESS",
      "service": "tribes-server-cloud",
      "description": "The value that makes the server public or private. Public servers have a 1 in this variable.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "tribes-server-cloud",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_USERNAME",
      "service": "tribes-server-cloud",
      "description": "The username used to login to the Redis DB",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "PORT",
      "service": "redis-stack-server",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDIS_PW",
      "service": "redis-stack-server",
      "description": "Provide a value for REDIS_PW.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDIS_ARGS",
      "service": "redis-stack-server",
      "description": "Provide a value for REDIS_ARGS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "tribes-server"
      }
    },
    "cli": "railway deploy --template tribes-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6662bf98-8608-4aaf-b31a-ecea927d7264",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "499cdf14-ab37-49bb-a575-20944e0328ca": {
                  "icon": null,
                  "name": "tribes-server-cloud",
                  "deploy": {
                    "startCommand": "",
                    "healthcheckPath": null,
                    "preDeployCommand": [
                      "uv run ./server.py --show-admin-pw"
                    ],
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/ShariqT/tribes-server-cloud",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8000"
                    },
                    "APP_KEY": {
                      "isOptional": false,
                      "description": "The value that will secure cookies and session data",
                      "defaultValue": "{{APP_KEY}}"
                    },
                    "REDIS_DB": {
                      "isOptional": false,
                      "description": "The database index for Redis",
                      "defaultValue": "0"
                    },
                    "REDIS_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{redis-stack-server.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDIS_PORT": {
                      "isOptional": false,
                      "description": "The port that Redis is listening on",
                      "defaultValue": "6379"
                    },
                    "PUBLIC_ACCESS": {
                      "isOptional": false,
                      "description": "The value that makes the server public or private. Public servers have a 1 in this variable.",
                      "defaultValue": "1"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{redis-stack-server.REDIS_PW}}"
                    },
                    "REDIS_USERNAME": {
                      "isOptional": false,
                      "description": "The username used to login to the Redis DB",
                      "defaultValue": "default"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "499cdf14-ab37-49bb-a575-20944e0328ca": {
                      "mountPath": "/var/keys"
                    }
                  }
                },
                "7fa562ba-1734-479a-920b-acb4863d95b8": {
                  "icon": null,
                  "name": "redis-stack-server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis/redis-stack-server"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "6379"
                    },
                    "REDIS_PW": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{REDIS_PW}}"
                    },
                    "REDIS_ARGS": {
                      "isOptional": false,
                      "defaultValue": "--requirepass ${{REDIS_PW}}"
                    }
                  },
                  "volumeMounts": {
                    "7fa562ba-1734-479a-920b-acb4863d95b8": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T14:54:40.729Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_37763a13eec546c3baf9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 131,
    "typical_build_seconds": 31,
    "typical_start_seconds": 10,
    "slowest_service": "tribes-server-cloud"
  }
}
