{
  "manifest_version": "1.0.0",
  "template": {
    "id": "55edec06-2aac-4a77-93ba-ec10bd44e935",
    "slug": "valkey-or-just-updated-redis-alternative",
    "name": "Valkey | (Just Updated) Redis Alternative, Crash-Safe Data, Memory Capped",
    "description": "Valkey Redis fork. Password on, AOF every second, memory capped, data kept",
    "url": "https://railway.com/deploy/valkey-or-just-updated-redis-alternative",
    "upstream": {
      "image": "valkey/valkey:9.1.2-trixie@sha256:418652cfb58ef879d4978c33553735d7147016032d5aefaa14c828e611eb9dfd"
    }
  },
  "services": [
    {
      "name": "valkey",
      "source": {
        "image": "valkey/valkey:9.1.2-trixie@sha256:418652cfb58ef879d4978c33553735d7147016032d5aefaa14c828e611eb9dfd"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        6379
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "VALKEY_PASSWORD",
      "service": "valkey",
      "description": "Provide a value for VALKEY_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "VALKEY_PUBLIC_URL",
      "service": "valkey",
      "description": "Provide a value for VALKEY_PUBLIC_URL.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "VALKEY_PRIVATE_URL",
      "service": "valkey",
      "description": "Provide a value for VALKEY_PRIVATE_URL.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "valkey-or-just-updated-redis-alternative"
      }
    },
    "cli": "railway deploy --template valkey-or-just-updated-redis-alternative",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "55edec06-2aac-4a77-93ba-ec10bd44e935",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1198622b-560d-4e0d-b0af-d241918c3d7e": {
                  "icon": null,
                  "name": "valkey",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'set -e; M=$(cat /sys/fs/cgroup/memory.max 2>/dev/null || echo max); Q=$(cut -d\" \" -f1 /sys/fs/cgroup/cpu.max 2>/dev/null || echo max); if [ \"$M\" != max ]; then MM=$((M / 100 * 70)); else MM=0; fi; if [ \"$Q\" != max ]; then CORES=$(( (Q + 99999) / 100000 )); else CORES=$(nproc); fi; if [ \"$CORES\" -ge 4 ]; then IOT=$CORES; else IOT=1; fi; [ \"$IOT\" -gt 8 ] && IOT=8; echo \"[railway] cores=$CORES io-threads=$IOT maxmemory=$MM appendonly=everysec owner=$(stat -c %u:%g /data)\"; exec docker-entrypoint.sh valkey-server --port 6379 --bind \"* -::*\" --requirepass \"$VALKEY_PASSWORD\" --dir /data --appendonly yes --appendfsync everysec --save \"900 1 300 100 60 10000\" --maxmemory \"$MM\" --maxmemory-policy noeviction --io-threads \"$IOT\"'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "valkey/valkey:9.1.2-trixie@sha256:418652cfb58ef879d4978c33553735d7147016032d5aefaa14c828e611eb9dfd"
                  },
                  "variables": {
                    "VALKEY_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{VALKEY_PASSWORD}}"
                    },
                    "VALKEY_PUBLIC_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{VALKEY_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "VALKEY_PRIVATE_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{VALKEY_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:6379"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    }
                  },
                  "volumeMounts": {
                    "1198622b-560d-4e0d-b0af-d241918c3d7e": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-30T04:14:55.026Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-19T18:30:41.596Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_777b350c7b6148d4b106",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 68,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "valkey"
  }
}
