Skip to content

Commit b2d1a1f

Browse files
committed
docs(scaling): add Redis URL config instruction to run workers on separate machines
1 parent f950c68 commit b2d1a1f

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,18 @@ docker run --name minio -p 9000:9000 -p 9001:9001 \
7979

8080
---
8181

82+
## Redis (Celery Broker)
83+
84+
By default, the Celery broker is expected at `redis://localhost:6379`. To use a remote Redis instance (e.g., for running Celery workers on separate machines), set `REDIS_URL` in your `.env` file:
85+
86+
```
87+
REDIS_URL=redis://<host>:6379
88+
```
89+
90+
All services that connect to Redis — the FastAPI app and every Celery worker — must have the same `REDIS_URL`. Workers on remote machines need only the `backend/` code, Docker, and access to the shared Redis instance.
91+
92+
---
93+
8294
## Backend Setup
8395

8496
1. Install **Python 3.14** and **Docker**, then install the project dependencies:

0 commit comments

Comments
 (0)