{
  "manifest_version": "1.0.0",
  "template": {
    "id": "cac6ebbf-44e4-4571-9bd6-09d88424bd8f",
    "slug": "redis-ha-w-sentinel",
    "name": "Redis HA (w/ Sentinel)",
    "description": "One-click Redis replica set with Sentinel for automated failover",
    "url": "https://railway.com/deploy/redis-ha-w-sentinel"
  },
  "services": [
    {
      "name": "Redis Replica 1",
      "source": {
        "image": "redis:8.4.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Redis Sentinel 1",
      "source": {
        "image": "redis:8.4.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis Sentinel 2",
      "source": {
        "image": "redis:8.4.0"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis Primary",
      "source": {
        "image": "redis:8.4.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Redis Replica 2",
      "source": {
        "image": "redis:8.4.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Redis Sentinel 3",
      "source": {
        "image": "redis:8.4.0"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis Replica 1",
      "description": "Provide a value for REDISHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis Replica 1",
      "description": "Provide a value for REDISPORT.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis Replica 1",
      "description": "Provide a value for REDISUSER.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis Replica 1",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MASTER_HOST",
      "service": "Redis Replica 1",
      "description": "Provide a value for MASTER_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MASTER_PASS",
      "service": "Redis Replica 1",
      "description": "Provide a value for MASTER_PASS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MASTER_PORT",
      "service": "Redis Replica 1",
      "description": "Provide a value for MASTER_PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis Replica 1",
      "description": "Provide a value for REDISPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis Replica 1",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis Replica 1",
      "description": "Provide a value for REDIS_PUBLIC_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MASTER_HOST",
      "service": "Redis Sentinel 1",
      "description": "Provide a value for MASTER_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MASTER_PASS",
      "service": "Redis Sentinel 1",
      "description": "Provide a value for MASTER_PASS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MASTER_PORT",
      "service": "Redis Sentinel 1",
      "description": "Provide a value for MASTER_PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SENTINEL_PORT",
      "service": "Redis Sentinel 1",
      "description": "Provide a value for SENTINEL_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "26379"
    },
    {
      "key": "SENTINEL_QUORUM",
      "service": "Redis Sentinel 1",
      "description": "Provide a value for SENTINEL_QUORUM.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "REDIS_PRIMARY_NAME",
      "service": "Redis Sentinel 1",
      "description": "Provide a value for REDIS_PRIMARY_NAME.",
      "secret": false,
      "strategy": "default",
      "default": "myprimary"
    },
    {
      "key": "REDIS_DOWN_AFTER_MS",
      "service": "Redis Sentinel 1",
      "description": "Provide a value for REDIS_DOWN_AFTER_MS.",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "SENTINEL_PARALLEL_SYNCS",
      "service": "Redis Sentinel 1",
      "description": "Provide a value for SENTINEL_PARALLEL_SYNCS.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "REDIS_FAILOVER_TIMEOUT_MS",
      "service": "Redis Sentinel 1",
      "description": "Provide a value for REDIS_FAILOVER_TIMEOUT_MS.",
      "secret": false,
      "strategy": "default",
      "default": "180000"
    },
    {
      "key": "MASTER_HOST",
      "service": "Redis Sentinel 2",
      "description": "Provide a value for MASTER_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MASTER_PASS",
      "service": "Redis Sentinel 2",
      "description": "Provide a value for MASTER_PASS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MASTER_PORT",
      "service": "Redis Sentinel 2",
      "description": "Provide a value for MASTER_PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SENTINEL_PORT",
      "service": "Redis Sentinel 2",
      "description": "Provide a value for SENTINEL_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "26379"
    },
    {
      "key": "SENTINEL_QUORUM",
      "service": "Redis Sentinel 2",
      "description": "Provide a value for SENTINEL_QUORUM.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "REDIS_PRIMARY_NAME",
      "service": "Redis Sentinel 2",
      "description": "Provide a value for REDIS_PRIMARY_NAME.",
      "secret": false,
      "strategy": "default",
      "default": "myprimary"
    },
    {
      "key": "REDIS_DOWN_AFTER_MS",
      "service": "Redis Sentinel 2",
      "description": "Provide a value for REDIS_DOWN_AFTER_MS.",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "SENTINEL_PARALLEL_SYNCS",
      "service": "Redis Sentinel 2",
      "description": "Provide a value for SENTINEL_PARALLEL_SYNCS.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "REDIS_FAILOVER_TIMEOUT_MS",
      "service": "Redis Sentinel 2",
      "description": "Provide a value for REDIS_FAILOVER_TIMEOUT_MS.",
      "secret": false,
      "strategy": "default",
      "default": "180000"
    },
    {
      "key": "REDISHOST",
      "service": "Redis Primary",
      "description": "Provide a value for REDISHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis Primary",
      "description": "Provide a value for REDISPORT.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis Primary",
      "description": "Provide a value for REDISUSER.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis Primary",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis Primary",
      "description": "Provide a value for REDISPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis Primary",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis Primary",
      "description": "Provide a value for REDIS_PUBLIC_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISHOST",
      "service": "Redis Replica 2",
      "description": "Provide a value for REDISHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis Replica 2",
      "description": "Provide a value for REDISPORT.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis Replica 2",
      "description": "Provide a value for REDISUSER.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis Replica 2",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MASTER_HOST",
      "service": "Redis Replica 2",
      "description": "Provide a value for MASTER_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MASTER_PASS",
      "service": "Redis Replica 2",
      "description": "Provide a value for MASTER_PASS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MASTER_PORT",
      "service": "Redis Replica 2",
      "description": "Provide a value for MASTER_PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis Replica 2",
      "description": "Provide a value for REDISPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis Replica 2",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis Replica 2",
      "description": "Provide a value for REDIS_PUBLIC_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MASTER_HOST",
      "service": "Redis Sentinel 3",
      "description": "Provide a value for MASTER_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MASTER_PASS",
      "service": "Redis Sentinel 3",
      "description": "Provide a value for MASTER_PASS.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MASTER_PORT",
      "service": "Redis Sentinel 3",
      "description": "Provide a value for MASTER_PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SENTINEL_PORT",
      "service": "Redis Sentinel 3",
      "description": "Provide a value for SENTINEL_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "26379"
    },
    {
      "key": "SENTINEL_QUORUM",
      "service": "Redis Sentinel 3",
      "description": "Provide a value for SENTINEL_QUORUM.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "REDIS_PRIMARY_NAME",
      "service": "Redis Sentinel 3",
      "description": "Provide a value for REDIS_PRIMARY_NAME.",
      "secret": false,
      "strategy": "default",
      "default": "myprimary"
    },
    {
      "key": "REDIS_DOWN_AFTER_MS",
      "service": "Redis Sentinel 3",
      "description": "Provide a value for REDIS_DOWN_AFTER_MS.",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "SENTINEL_PARALLEL_SYNCS",
      "service": "Redis Sentinel 3",
      "description": "Provide a value for SENTINEL_PARALLEL_SYNCS.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "REDIS_FAILOVER_TIMEOUT_MS",
      "service": "Redis Sentinel 3",
      "description": "Provide a value for REDIS_FAILOVER_TIMEOUT_MS.",
      "secret": false,
      "strategy": "default",
      "default": "180000"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "redis-ha-w-sentinel"
      }
    },
    "cli": "railway deploy --template redis-ha-w-sentinel",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "cac6ebbf-44e4-4571-9bd6-09d88424bd8f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "177ea8be-3115-4883-b28a-b8efef6f6973": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis Replica 1",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --masterauth $MASTER_PASS --replicaof $MASTER_HOST $MASTER_PORT --appendonly yes --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\" --protected-mode no",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.4.0"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "MASTER_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{Redis Primary.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MASTER_PASS": {
                      "isOptional": false,
                      "defaultValue": "${{Redis Primary.REDISPASSWORD}}"
                    },
                    "MASTER_PORT": {
                      "isOptional": false,
                      "defaultValue": "${{Redis Primary.REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{MASTER_PASS}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "volumeMounts": {
                    "177ea8be-3115-4883-b28a-b8efef6f6973": {
                      "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
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "2f5b6fa7-d0c0-41de-a0de-200f3fc87876": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis Sentinel 1",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'printf \"%s\\n\" \\ \"protected-mode no\" \\ \"port ${SENTINEL_PORT:-26379}\" \\ \"\" \\ \"sentinel monitor ${REDIS_PRIMARY_NAME} ${MASTER_HOST} ${MASTER_PORT} ${SENTINEL_QUORUM}\" \\ \"sentinel auth-pass ${REDIS_PRIMARY_NAME} ${MASTER_PASS}\" \\ \"sentinel down-after-milliseconds ${REDIS_PRIMARY_NAME} ${REDIS_DOWN_AFTER_MS}\" \\ \"sentinel failover-timeout ${REDIS_PRIMARY_NAME} ${REDIS_FAILOVER_TIMEOUT_MS}\" \\ \"sentinel parallel-syncs ${REDIS_PRIMARY_NAME} ${SENTINEL_PARALLEL_SYNCS}\" \\ \"sentinel resolve-hostnames yes\" \\ \"sentinel announce-hostnames yes\" \\ > /tmp/sentinel.conf && exec docker-entrypoint.sh redis-server /tmp/sentinel.conf --sentinel'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.4.0"
                  },
                  "variables": {
                    "MASTER_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{Redis Primary.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MASTER_PASS": {
                      "isOptional": false,
                      "defaultValue": "${{Redis Primary.REDISPASSWORD}}"
                    },
                    "MASTER_PORT": {
                      "isOptional": false,
                      "defaultValue": "${{Redis Primary.REDISPORT}}"
                    },
                    "SENTINEL_PORT": {
                      "isOptional": false,
                      "defaultValue": "26379"
                    },
                    "SENTINEL_QUORUM": {
                      "isOptional": false,
                      "defaultValue": "2"
                    },
                    "REDIS_PRIMARY_NAME": {
                      "isOptional": false,
                      "defaultValue": "myprimary"
                    },
                    "REDIS_DOWN_AFTER_MS": {
                      "isOptional": false,
                      "defaultValue": "5000"
                    },
                    "SENTINEL_PARALLEL_SYNCS": {
                      "isOptional": false,
                      "defaultValue": "1"
                    },
                    "REDIS_FAILOVER_TIMEOUT_MS": {
                      "isOptional": false,
                      "defaultValue": "180000"
                    }
                  },
                  "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
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "96d8affa-7890-4202-8158-c6c0fe9f07a9": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis Sentinel 2",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'printf \"%s\\n\" \\ \"protected-mode no\" \\ \"port ${SENTINEL_PORT:-26379}\" \\ \"\" \\ \"sentinel monitor ${REDIS_PRIMARY_NAME} ${MASTER_HOST} ${MASTER_PORT} ${SENTINEL_QUORUM}\" \\ \"sentinel auth-pass ${REDIS_PRIMARY_NAME} ${MASTER_PASS}\" \\ \"sentinel down-after-milliseconds ${REDIS_PRIMARY_NAME} ${REDIS_DOWN_AFTER_MS}\" \\ \"sentinel failover-timeout ${REDIS_PRIMARY_NAME} ${REDIS_FAILOVER_TIMEOUT_MS}\" \\ \"sentinel parallel-syncs ${REDIS_PRIMARY_NAME} ${SENTINEL_PARALLEL_SYNCS}\" \\ \"sentinel resolve-hostnames yes\" \\ \"sentinel announce-hostnames yes\" \\ > /tmp/sentinel.conf && exec docker-entrypoint.sh redis-server /tmp/sentinel.conf --sentinel'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.4.0"
                  },
                  "variables": {
                    "MASTER_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{Redis Primary.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MASTER_PASS": {
                      "isOptional": false,
                      "defaultValue": "${{Redis Primary.REDISPASSWORD}}"
                    },
                    "MASTER_PORT": {
                      "isOptional": false,
                      "defaultValue": "${{Redis Primary.REDISPORT}}"
                    },
                    "SENTINEL_PORT": {
                      "isOptional": false,
                      "defaultValue": "26379"
                    },
                    "SENTINEL_QUORUM": {
                      "isOptional": false,
                      "defaultValue": "2"
                    },
                    "REDIS_PRIMARY_NAME": {
                      "isOptional": false,
                      "defaultValue": "myprimary"
                    },
                    "REDIS_DOWN_AFTER_MS": {
                      "isOptional": false,
                      "defaultValue": "5000"
                    },
                    "SENTINEL_PARALLEL_SYNCS": {
                      "isOptional": false,
                      "defaultValue": "1"
                    },
                    "REDIS_FAILOVER_TIMEOUT_MS": {
                      "isOptional": false,
                      "defaultValue": "180000"
                    }
                  },
                  "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
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "ab059eb9-908d-4d83-b294-8b992a86eeb5": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis Primary",
                  "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\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.4.0"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "volumeMounts": {
                    "ab059eb9-908d-4d83-b294-8b992a86eeb5": {
                      "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
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "b8a99ecf-3f0b-4b88-a408-38c30750eb93": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis Replica 2",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --masterauth $MASTER_PASS --replicaof $MASTER_HOST $MASTER_PORT --appendonly yes --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\" --protected-mode no",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.4.0"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "MASTER_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{Redis Primary.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MASTER_PASS": {
                      "isOptional": false,
                      "defaultValue": "${{Redis Primary.REDISPASSWORD}}"
                    },
                    "MASTER_PORT": {
                      "isOptional": false,
                      "defaultValue": "${{Redis Primary.REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{MASTER_PASS}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    }
                  },
                  "volumeMounts": {
                    "b8a99ecf-3f0b-4b88-a408-38c30750eb93": {
                      "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
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "ceaba0b4-0c5b-42e1-b68e-2134a4cc0c29": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis Sentinel 3",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'printf \"%s\\n\" \\ \"protected-mode no\" \\ \"port ${SENTINEL_PORT:-26379}\" \\ \"\" \\ \"sentinel monitor ${REDIS_PRIMARY_NAME} ${MASTER_HOST} ${MASTER_PORT} ${SENTINEL_QUORUM}\" \\ \"sentinel auth-pass ${REDIS_PRIMARY_NAME} ${MASTER_PASS}\" \\ \"sentinel down-after-milliseconds ${REDIS_PRIMARY_NAME} ${REDIS_DOWN_AFTER_MS}\" \\ \"sentinel failover-timeout ${REDIS_PRIMARY_NAME} ${REDIS_FAILOVER_TIMEOUT_MS}\" \\ \"sentinel parallel-syncs ${REDIS_PRIMARY_NAME} ${SENTINEL_PARALLEL_SYNCS}\" \\ \"sentinel resolve-hostnames yes\" \\ \"sentinel announce-hostnames yes\" \\ > /tmp/sentinel.conf && exec docker-entrypoint.sh redis-server /tmp/sentinel.conf --sentinel'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.4.0"
                  },
                  "variables": {
                    "MASTER_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{Redis Primary.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MASTER_PASS": {
                      "isOptional": false,
                      "defaultValue": "${{Redis Primary.REDISPASSWORD}}"
                    },
                    "MASTER_PORT": {
                      "isOptional": false,
                      "defaultValue": "${{Redis Primary.REDISPORT}}"
                    },
                    "SENTINEL_PORT": {
                      "isOptional": false,
                      "defaultValue": "26379"
                    },
                    "SENTINEL_QUORUM": {
                      "isOptional": false,
                      "defaultValue": "2"
                    },
                    "REDIS_PRIMARY_NAME": {
                      "isOptional": false,
                      "defaultValue": "myprimary"
                    },
                    "REDIS_DOWN_AFTER_MS": {
                      "isOptional": false,
                      "defaultValue": "5000"
                    },
                    "SENTINEL_PARALLEL_SYNCS": {
                      "isOptional": false,
                      "defaultValue": "1"
                    },
                    "REDIS_FAILOVER_TIMEOUT_MS": {
                      "isOptional": false,
                      "defaultValue": "180000"
                    }
                  },
                  "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
                    },
                    "internal": null,
                    "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": 6,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T22:14:43.398Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T18:39:41.370Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_2ab8180a5408480fbf12",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 58,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "Redis Sentinel 3"
  }
}
