mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-01 18:21:30 +08:00
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
25 lines
491 B
YAML
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
|