Muestra las diferencias entre dos versiones de la página.
| Ambos lados, revisión anterior Revisión previa Próxima revisión | Revisión previa | ||
|
wiki2:gunicorn [2019/05/23 08:33] alfred [In docker containers] |
wiki2:gunicorn [2020/05/09 09:25] (actual) |
||
|---|---|---|---|
| Línea 37: | Línea 37: | ||
| Speaking of nginx, you don’t always nedd nginx or another proxy in front Gunicorn. Many container deployment systems already have a HTTP load balancer/reverse proxy built-in, in which case Gunicorn isn’t being exposed directly to HTTP clients anyway. | Speaking of nginx, you don’t always nedd nginx or another proxy in front Gunicorn. Many container deployment systems already have a HTTP load balancer/reverse proxy built-in, in which case Gunicorn isn’t being exposed directly to HTTP clients anyway. | ||
| + | |||
| + | ==== An example of gunicorn app in Docker ==== | ||
| <code> | <code> | ||
| gunicorn rema.wsgi:application --bind 0.0.0.0:8000 --worker-tmp-dir ~ --workers=2 --threads=4 --worker-class=gthread | gunicorn rema.wsgi:application --bind 0.0.0.0:8000 --worker-tmp-dir ~ --workers=2 --threads=4 --worker-class=gthread | ||
| </code> | </code> | ||