mirror of
https://github.com/frappe/frappe_docker.git
synced 2024-12-23 02:28:57 +00:00
fix: gunicorn config for containers (#752)
This commit is contained in:
parent
6fa358ca4e
commit
832c44c8ea
@ -96,7 +96,16 @@ COPY gevent_patch.py /opt/patches/
|
|||||||
|
|
||||||
WORKDIR /home/frappe/frappe-bench/sites
|
WORKDIR /home/frappe/frappe-bench/sites
|
||||||
|
|
||||||
CMD [ "/home/frappe/frappe-bench/env/bin/gunicorn", "-b", "0.0.0.0:8000", "frappe.app:application" ]
|
CMD [ "/home/frappe/frappe-bench/env/bin/gunicorn", \
|
||||||
|
"--bind=0.0.0.0:8000", \
|
||||||
|
"--threads=4", \
|
||||||
|
"--workers=2", \
|
||||||
|
"--worker-class=gthread", \
|
||||||
|
"--worker-tmp-dir=/dev/shm", \
|
||||||
|
"--timeout=120", \
|
||||||
|
"--preload", \
|
||||||
|
"frappe.app:application" \
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
FROM configured_base as frappe
|
FROM configured_base as frappe
|
||||||
|
Loading…
Reference in New Issue
Block a user