{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c63620a7-e344-42e9-b9a5-5bada8519bd3",
    "slug": "tronbyt-tidbyt-alternative",
    "name": "Tronbyt — Tidbyt Alternative",
    "description": "Self-hosted Tidbyt alternative for managing smart display apps.",
    "url": "https://railway.com/deploy/tronbyt-tidbyt-alternative",
    "upstream": {
      "image": "ghcr.io/tronbyt/server"
    }
  },
  "services": [
    {
      "name": "tronbyt-server",
      "source": {
        "image": "ghcr.io/tronbyt/server"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "tronbyt-server",
      "description": "Railway public service port",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "DATA_DIR",
      "service": "tronbyt-server",
      "description": "Persistent Tronbyt data directory",
      "secret": false,
      "strategy": "default",
      "default": "/app/data"
    },
    {
      "key": "LOG_LEVEL",
      "service": "tronbyt-server",
      "description": "Application logging level",
      "secret": false,
      "strategy": "default",
      "default": "INFO"
    },
    {
      "key": "REDIS_URL",
      "service": "tronbyt-server",
      "description": "Optional Redis connection URL for persistent caching",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PRODUCTION",
      "service": "tronbyt-server",
      "description": "Run Tronbyt in production mode",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SINGLE_USER_AUTO_LOGIN",
      "service": "tronbyt-server",
      "description": "Require normal login instead of automatic single-user login",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ENABLE_USER_REGISTRATION",
      "service": "tronbyt-server",
      "description": "Allow initial user/admin registration",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Redis private hostname within the Railway project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Redis service port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default Redis username",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for connecting to Redis using the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Compatibility alias for the generated Redis password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auto-generated Redis password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "tronbyt-tidbyt-alternative"
      }
    },
    "cli": "railway deploy --template tronbyt-tidbyt-alternative",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c63620a7-e344-42e9-b9a5-5bada8519bd3",
            "serializedConfig": {
              "services": {
                "39c35b54-65f0-4248-b593-14550998d1bb": {
                  "icon": "https://tronbyt.com/icons/logo.svg",
                  "name": "tronbyt-server",
                  "source": {
                    "image": "ghcr.io/tronbyt/server"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Railway public service port",
                      "defaultValue": "8000"
                    },
                    "DATA_DIR": {
                      "description": "Persistent Tronbyt data directory",
                      "defaultValue": "/app/data"
                    },
                    "LOG_LEVEL": {
                      "description": "Application logging level",
                      "defaultValue": "INFO"
                    },
                    "REDIS_URL": {
                      "description": "Optional Redis connection URL for persistent caching",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "PRODUCTION": {
                      "description": "Run Tronbyt in production mode",
                      "defaultValue": "true"
                    },
                    "GITHUB_TOKEN": {
                      "isOptional": true,
                      "description": "Optional GitHub token for higher API limits when accessing app repositories",
                      "defaultValue": ""
                    },
                    "SINGLE_USER_AUTO_LOGIN": {
                      "description": "Require normal login instead of automatic single-user login",
                      "defaultValue": "false"
                    },
                    "ENABLE_USER_REGISTRATION": {
                      "description": "Allow initial user/admin registration",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  },
                  "volumeMounts": {
                    "39c35b54-65f0-4248-b593-14550998d1bb": {
                      "mountPath": "/app/data"
                    }
                  }
                },
                "b818f4d2-67f4-4247-97bc-72305b7e88c9": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\""
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Redis private hostname within the Railway project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Redis service port",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default Redis username",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Connection string for connecting to Redis using the private network",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Compatibility alias for the generated Redis password",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated Redis password",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "b818f4d2-67f4-4247-97bc-72305b7e88c9": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "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-19T15:55:29.182Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6408479224ed4939ac09",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 52,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "tronbyt-server"
  }
}
