mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Copy gunicorn.conf.py
This commit is contained in:
parent
839c29117d
commit
148600a9c4
@ -84,4 +84,7 @@ RUN mkdir /home/inventree/media /home/inventree/static /home/inventree/log /home
|
||||
# Copy supervisor file
|
||||
COPY docker/supervisor.conf /etc/supervisord.conf
|
||||
|
||||
# Copy gunicorn config file
|
||||
COPY docker/gunicorn.conf.py /home/inventree/gunicorn.conf.py
|
||||
|
||||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
|
||||
|
6
docker/gunicorn.conf.py
Normal file
6
docker/gunicorn.conf.py
Normal file
@ -0,0 +1,6 @@
|
||||
import multiprocessing
|
||||
|
||||
workers = multiprocessing.cpu_count() * 2 + 1
|
||||
|
||||
max_requests = 1000
|
||||
max_requests_jitter = 50
|
@ -18,7 +18,7 @@ nodaemon=true
|
||||
[program:inventree-server]
|
||||
user=inventree
|
||||
directory=/home/inventree/src/InvenTree
|
||||
command=/home/inventree/env/bin/gunicorn -c gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:%(INVENTREE_PORT)s
|
||||
command=/home/inventree/env/bin/gunicorn -c /home/inventree/gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:%(ENV_INVENTREE_PORT)s
|
||||
startsecs=10
|
||||
autostart=true
|
||||
autorestart=true
|
||||
|
Loading…
Reference in New Issue
Block a user