FastAPI Async Dev Stack
FastAPI + Postgres + Redis + Celery + Flower dashboard + Adminer with Alembic migrations and async SQLAlchemy pre-wired.
FastAPI Async Dev Stack
The full async Python web stack assembled and configured. FastAPI, Celery workers, Flower monitoring, Postgres, Redis, and Adminer — all six services wired together with Alembic for migrations and async SQLAlchemy for non-blocking DB access.
What's Included
- FastAPI with Uvicorn — async HTTP server on port 8000
- Celery worker connected to Redis broker for background task processing
- Flower dashboard for real-time Celery task monitoring
- Postgres 16 as the primary data store
- Redis 7 as both Celery broker and result backend
- Adminer for visual DB management
Developer Experience
- Async SQLAlchemy session factory pre-configured with
asyncpgdriver - Alembic pre-initialized — run
docker compose exec app alembic upgrade headto apply migrations - Uvicorn
--reloadflag active in dev mode — code changes take effect immediately - Celery and FastAPI share the same app package — tasks import cleanly without circular deps
- Flower accessible at port 5555 with no auth required in dev
What You Get
docker-compose.yml— all six services with correct dependency orderingapp/main.py— FastAPI app with a sample async endpoint and background task triggerapp/tasks.py— sample Celery taskapp/database.py— async SQLAlchemy engine and session factoryalembic/— pre-initialized migration directory withenv.pypatched for asyncrequirements.txt,.env.example,.gitignore,README.md
Service URLs
- FastAPI:
http://localhost:8000— API docs at/docs - Flower:
http://localhost:5555 - Adminer:
http://localhost:8080 - Postgres:
localhost:5432 - Redis:
localhost:6379