gunicorn/tests/docker/test_asgi_uwsgi/docker-compose.yml
Benoit Chesneau 8663740907
Add uWSGI protocol support to ASGI worker (#3467)
Add uWSGI protocol support to ASGI worker

- Implements AsyncUWSGIRequest class extending sync UWSGIRequest to reuse parsing logic with async I/O
- ASGI protocol handler selects between HTTP and uWSGI based on --protocol config option
- Allows gunicorn's ASGI worker to receive requests from nginx using uwsgi_pass directive
- Includes unit tests and Docker integration tests
2026-01-25 14:45:07 +01:00

25 lines
491 B
YAML

services:
gunicorn:
build:
context: ../../..
dockerfile: tests/docker/test_asgi_uwsgi/Dockerfile
command: >
gunicorn
--worker-class asgi
--protocol uwsgi
--uwsgi-allow-from '*'
--bind 0.0.0.0:8000
--workers 1
--log-level debug
app:app
working_dir: /app
nginx:
image: nginx:alpine
ports:
- "8080:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- gunicorn