{
  "manifest_version": "1.0.0",
  "template": {
    "id": "852a58c1-f0c6-4534-9114-6d4a1665f13d",
    "slug": "dragonfly-or-just-updated-redis-replacem",
    "name": "Dragonfly | (Just Updated) Redis Replacement, Snapshots Every 5 Min",
    "description": "Dragonfly Redis replacement. Password on, snapshots every 5 min, data kept",
    "url": "https://railway.com/deploy/dragonfly-or-just-updated-redis-replacem",
    "upstream": {
      "image": "ghcr.io/dragonflydb/dragonfly:v2.0.0@sha256:7426fdb31ddcf7bd9499b4205f36ebaa83b26149ba1609a0d5f8f474b3631233"
    }
  },
  "services": [
    {
      "name": "dragonfly",
      "source": {
        "image": "ghcr.io/dragonflydb/dragonfly:v2.0.0@sha256:7426fdb31ddcf7bd9499b4205f36ebaa83b26149ba1609a0d5f8f474b3631233"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        6379
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "DRAGONFLY_PASSWORD",
      "service": "dragonfly",
      "description": "Provide a value for DRAGONFLY_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DRAGONFLY_PUBLIC_URL",
      "service": "dragonfly",
      "description": "Provide a value for DRAGONFLY_PUBLIC_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DRAGONFLY_PRIVATE_URL",
      "service": "dragonfly",
      "description": "Provide a value for DRAGONFLY_PRIVATE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "dragonfly-or-just-updated-redis-replacem"
      }
    },
    "cli": "railway deploy --template dragonfly-or-just-updated-redis-replacem",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "852a58c1-f0c6-4534-9114-6d4a1665f13d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "12d0dc90-986a-41ca-8865-a83f2fff3e93": {
                  "icon": null,
                  "name": "dragonfly",
                  "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; echo \"[railway] cores=$CORES maxmemory=$MM snapshot=/data/dump every 5 min owner=$(stat -c %u:%g /data)\"; exec entrypoint.sh dragonfly --logtostderr --requirepass \"$DRAGONFLY_PASSWORD\" --dir /data --dbfilename dump --snapshot_cron \"*/5 * * * *\" --proactor_threads \"$CORES\" --maxmemory \"$MM\"'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/dragonflydb/dragonfly:v2.0.0@sha256:7426fdb31ddcf7bd9499b4205f36ebaa83b26149ba1609a0d5f8f474b3631233"
                  },
                  "variables": {
                    "DRAGONFLY_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{DRAGONFLY_PASSWORD}}"
                    },
                    "DRAGONFLY_PUBLIC_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{DRAGONFLY_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "DRAGONFLY_PRIVATE_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{DRAGONFLY_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:6379"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    }
                  },
                  "volumeMounts": {
                    "12d0dc90-986a-41ca-8865-a83f2fff3e93": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-06T04:14:42.626Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-04T23:23:55.958Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_a5dc649fc9f64c42a482",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 18,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "dragonfly"
  }
}
