{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e4d4c76b-e405-45fb-86eb-98790c9595cc",
    "slug": "fastapi-celery-beat-worker-flower",
    "name": "FastAPI + Celery (Beat, Worker, Flower)",
    "description": "FastAPI template integrated with celery",
    "url": "https://railway.com/deploy/fastapi-celery-beat-worker-flower",
    "upstream": {
      "repo_url": "https://github.com/rubenszinho/caddy-auth-proxy"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2.1"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        6379
      ],
      "http": false
    },
    {
      "name": "caddy-auth-proxy",
      "source": {
        "repo": "https://github.com/rubenszinho/caddy-auth-proxy"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "celery-worker",
      "source": {
        "repo": "https://github.com/rubenszinho/celery-worker"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "celery-beat",
      "source": {
        "repo": "https://github.com/rubenszinho/celery-beat"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "fastapi",
      "source": {
        "repo": "https://github.com/rubenszinho/fastapi"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "celery-flower-monitor",
      "source": {
        "repo": "https://github.com/rubenszinho/celery-flower-monitor"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "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"
    },
    {
      "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": "REDIS_URL",
      "service": "celery-worker",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TASK_ACKS_LATE",
      "service": "celery-worker",
      "description": "Provide a value for TASK_ACKS_LATE.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TASK_MAX_RETRIES",
      "service": "celery-worker",
      "description": "Provide a value for TASK_MAX_RETRIES.",
      "secret": false,
      "strategy": "default",
      "default": "3"
    },
    {
      "key": "WORKER_CONCURRENCY",
      "service": "celery-worker",
      "description": "Provide a value for WORKER_CONCURRENCY.",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "TASK_REJECT_ON_WORKER_LOST",
      "service": "celery-worker",
      "description": "Provide a value for TASK_REJECT_ON_WORKER_LOST.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "WORKER_MAX_TASKS_PER_CHILD",
      "service": "celery-worker",
      "description": "Provide a value for WORKER_MAX_TASKS_PER_CHILD.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "WORKER_PREFETCH_MULTIPLIER",
      "service": "celery-worker",
      "description": "Provide a value for WORKER_PREFETCH_MULTIPLIER.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "REDIS_URL",
      "service": "celery-beat",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BEAT_SCHEDULE_CRON",
      "service": "celery-beat",
      "description": "Cron format: minute hour day_of_month month day_of_week. Default: Run at 00:00 and 12:00 daily",
      "secret": false,
      "strategy": "default",
      "default": "0 0,12 * * *"
    },
    {
      "key": "REDIS_URL",
      "service": "fastapi",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "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"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "fastapi-celery-beat-worker-flower"
      }
    },
    "cli": "railway deploy --template fastapi-celery-beat-worker-flower",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e4d4c76b-e405-45fb-86eb-98790c9595cc",
            "serializedConfig": {
              "services": {
                "0dbd0884-1ece-4cc3-adc1-e95d5c03f9f3": {
                  "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": {
                    "0dbd0884-1ece-4cc3-adc1-e95d5c03f9f3": {
                      "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."
                  }
                },
                "4ed7d3f7-1b66-49fb-aeeb-fddf117557a7": {
                  "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
                      }
                    }
                  }
                },
                "5efa59a2-0cdc-40c2-abb2-25e3634f8777": {
                  "icon": "https://media.rubrion.ai/railway/icons/celery.svg",
                  "name": "celery-worker",
                  "source": {
                    "repo": "rubenszinho/celery-worker",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "TASK_ACKS_LATE": {
                      "defaultValue": "true"
                    },
                    "TASK_MAX_RETRIES": {
                      "defaultValue": "3"
                    },
                    "WORKER_CONCURRENCY": {
                      "defaultValue": "4"
                    },
                    "TASK_REJECT_ON_WORKER_LOST": {
                      "defaultValue": "true"
                    },
                    "WORKER_MAX_TASKS_PER_CHILD": {
                      "defaultValue": "1000"
                    },
                    "WORKER_PREFETCH_MULTIPLIER": {
                      "defaultValue": "1"
                    }
                  }
                },
                "93f423d8-48d6-4f20-8937-6e6cc752bede": {
                  "icon": "https://devicons.railway.app/beat",
                  "name": "celery-beat",
                  "source": {
                    "repo": "rubenszinho/celery-beat",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "BEAT_SCHEDULE_CRON": {
                      "isOptional": true,
                      "description": "Cron format: minute hour day_of_month month day_of_week. Default: Run at 00:00 and 12:00 daily",
                      "defaultValue": "0 0,12 * * *"
                    }
                  }
                },
                "b625d658-a829-4dac-947b-a62569b4b79c": {
                  "icon": "https://devicons.railway.app/fastapi",
                  "name": "fastapi",
                  "source": {
                    "repo": "rubenszinho/fastapi",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  }
                },
                "bc39393a-8e90-4a79-8833-d6384d06dbc2": {
                  "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}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 6,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T17:00:13.285Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4f6b1980caac40f2883b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 120,
    "typical_build_seconds": 50,
    "typical_start_seconds": 10,
    "slowest_service": "celery-beat"
  }
}
