2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-11-30 09:20:03 +00:00

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:
Karl Q.
2025-11-23 23:38:31 -08:00
committed by GitHub
parent 7c7d7b6a21
commit 5df42eda74

View File

@@ -149,7 +149,7 @@ COPY --from=builder_stage ${INVENTREE_BACKEND_DIR}/InvenTree/web/static/web ${IN
COPY --from=builder_stage /root/.local /root/.local COPY --from=builder_stage /root/.local /root/.local
# Launch the production server # 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 FROM builder_stage AS dev