2021-04-01 09:14:31 +00:00
|
|
|
; # Supervisor Config File (for docker build)
|
|
|
|
;
|
|
|
|
; This config file is specific to the InvenTree docker build!
|
|
|
|
;
|
|
|
|
; There are two separate processes which must be managed:
|
|
|
|
;
|
|
|
|
; ## Web Server
|
|
|
|
; The InvenTree server must be launched and managed as a process
|
|
|
|
; The recommended way to handle the web server is to use gunicorn
|
|
|
|
;
|
|
|
|
; ## Background Tasks
|
|
|
|
; A background task manager processes long-running and periodic tasks
|
|
|
|
; InvenTree uses django-q for this purpose
|
|
|
|
|
|
|
|
[supervisord]
|
2021-04-07 12:27:55 +00:00
|
|
|
user=inventree
|
2021-04-01 09:14:31 +00:00
|
|
|
nodaemon=true
|
|
|
|
|
|
|
|
[program:inventree-server]
|
|
|
|
user=inventree
|
2021-04-01 09:44:27 +00:00
|
|
|
directory=%(ENV_INVENTREE_SRC_DIR)s/InvenTree
|
2021-04-07 13:46:03 +00:00
|
|
|
command=%(ENV_INVENTREE_VENV)s/bin/gunicorn -c %(ENV_INVENTREE_HOME)s/gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:8080
|
2021-04-01 09:14:31 +00:00
|
|
|
startsecs=10
|
|
|
|
autostart=true
|
|
|
|
autorestart=true
|
|
|
|
startretries=3
|
2021-04-01 09:30:51 +00:00
|
|
|
stdout_logfile=/dev/fd/1
|
|
|
|
stdout_logfile_maxbytes=0
|
|
|
|
stderr_logfile=/dev/fd/2
|
|
|
|
stderr_logfile_maxbytes=0
|
2021-04-01 09:14:31 +00:00
|
|
|
|
|
|
|
[program:inventree-cluster]
|
|
|
|
user=inventree
|
2021-04-01 09:44:27 +00:00
|
|
|
directory=%(ENV_INVENTREE_SRC_DIR)s/InvenTree
|
2021-04-07 12:27:55 +00:00
|
|
|
command=%(ENV_INVENTREE_VENV)s/bin/python DJANGO_SETTINGS_FILE=InvenTree.settings manage.py qcluster
|
2021-04-01 09:14:31 +00:00
|
|
|
startsecs=10
|
|
|
|
autostart=true
|
|
|
|
autorestart=true
|
2021-04-01 09:30:51 +00:00
|
|
|
stdout_logfile=/dev/fd/1
|
|
|
|
stdout_logfile_maxbytes=0
|
|
|
|
stderr_logfile=/dev/fd/2
|
|
|
|
stderr_logfile_maxbytes=0
|