{
  "manifest_version": "1.0.0",
  "template": {
    "id": "af82e3eb-31e6-4524-9448-eb77bd8e99b8",
    "slug": "celery-flower-w-auth",
    "name": "Celery Flower (w/ Auth)",
    "description": "Celery Flower is a real-time web-based monitor for Celery task queues.",
    "url": "https://railway.com/deploy/celery-flower-w-auth",
    "upstream": {
      "repo_url": "https://github.com/rubenszinho/caddy-auth-proxy"
    }
  },
  "services": [
    {
      "name": "celery-flower-monitor",
      "source": {
        "repo": "https://github.com/rubenszinho/celery-flower-monitor"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "caddy-auth-proxy",
      "source": {
        "repo": "https://github.com/rubenszinho/caddy-auth-proxy"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        6379
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "celery-flower-monitor",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5555"
    },
    {
      "key": "REDIS_URL",
      "service": "celery-flower-monitor",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTH_PASS",
      "service": "caddy-auth-proxy",
      "description": "Provide a value for AUTH_PASS.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AUTH_USER",
      "service": "caddy-auth-proxy",
      "description": "Provide a value for AUTH_USER.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "DOMAIN_NAME",
      "service": "caddy-auth-proxy",
      "description": "Provide a value for DOMAIN_NAME.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "UPSTREAM_URL",
      "service": "caddy-auth-proxy",
      "description": "Provide a value for UPSTREAM_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Provide a value for REDISHOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Provide a value for REDISPORT.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Provide a value for REDISUSER.",
      "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": "Provide a value for REDISPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Connection string for connecting to redis externally",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "celery-flower-w-auth"
      }
    },
    "cli": "railway deploy --template celery-flower-w-auth",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "af82e3eb-31e6-4524-9448-eb77bd8e99b8",
            "serializedConfig": {
              "services": {
                "4a931d4c-b003-428f-b572-ce36a0ed16fc": {
                  "icon": "https://media.rubrion.ai/railway/icons/celery.svg",
                  "name": "celery-flower-monitor",
                  "source": {
                    "repo": "rubenszinho/celery-flower-monitor",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "5555"
                    },
                    "REDIS_URL": {
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    }
                  }
                },
                "a981e457-04fb-440a-96ca-6f786a0cfc76": {
                  "icon": "https://media.rubrion.ai/railway/icons/caddy.svg",
                  "name": "caddy-auth-proxy",
                  "source": {
                    "repo": "rubenszinho/caddy-auth-proxy",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "AUTH_PASS": {
                      "defaultValue": "{{AUTH_PASS}}"
                    },
                    "AUTH_USER": {
                      "defaultValue": "admin"
                    },
                    "DOMAIN_NAME": {
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "UPSTREAM_URL": {
                      "defaultValue": "http://${{celery-flower-monitor.RAILWAY_PRIVATE_DOMAIN}}:${{celery-flower-monitor.PORT}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  }
                },
                "e8d84e56-be35-4a2c-a80b-c8a6b4a38d76": {
                  "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.1"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "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,
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "REDIS_PUBLIC_URL": {
                      "description": "Connection string for connecting to redis externally",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    }
                  },
                  "volumeMounts": {
                    "e8d84e56-be35-4a2c-a80b-c8a6b4a38d76": {
                      "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."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-15T16:14:47.755Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-14T01:04:44.733Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ca5a6cb338ce4805a4da",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 127,
    "typical_build_seconds": 12,
    "typical_start_seconds": 10,
    "slowest_service": "celery-flower-monitor"
  }
}
