Skip to content

Docker-Compose template for orchestrating a FastAPI app with a Celery queue using Redis

Notifications You must be signed in to change notification settings

mattkohl/docker-fastapi-celery-redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker FastAPI Celery Redis

A basic Docker Compose template for orchestrating a FastAPI application & a Celery queue with Redis

Installation

git clone https:/mattkohl/docker-fastapi-celery-redis

Build & Launch

docker-compose up -d --build

This will expose the FastAPI's endpoints on port 5001 as well as a Flower server for monitoring workers on port 5555

To add more workers:

docker-compose up -d --scale worker=5 --no-recreate

To shut down:

docker-compose down

To change the endpoints, update the code in api/app.py

Task changes should happen in celery-queue/tasks.py

About

Docker-Compose template for orchestrating a FastAPI app with a Celery queue using Redis

Topics

Resources

Code of conduct

Stars

Watchers

Forks