chore, fix: allow gunicorn webserver bind address to be adjusted (#10900)
In production mode. Retain default IPv4 exclusive bind behavior. Co-authored-by: Karl Quinsland <contact@kquinsland.com>
This commit is contained in:
parent
7c7d7b6a21
commit
5df42eda74
|
|
@ -149,7 +149,7 @@ COPY --from=builder_stage ${INVENTREE_BACKEND_DIR}/InvenTree/web/static/web ${IN
|
|||
COPY --from=builder_stage /root/.local /root/.local
|
||||
|
||||
# Launch the production server
|
||||
CMD ["sh", "-c", "exec gunicorn -c ./gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:8000 --chdir ${INVENTREE_BACKEND_DIR}/InvenTree"]
|
||||
CMD ["sh", "-c", "exec gunicorn -c ./gunicorn.conf.py InvenTree.wsgi -b ${INVENTREE_WEB_ADDR}:${INVENTREE_WEB_PORT} --chdir ${INVENTREE_BACKEND_DIR}/InvenTree"]
|
||||
|
||||
FROM builder_stage AS dev
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue