From 5df42eda7463ccf761699a5e366a001fe3f67a33 Mon Sep 17 00:00:00 2001 From: "Karl Q." Date: Sun, 23 Nov 2025 23:38:31 -0800 Subject: [PATCH] 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 --- contrib/container/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/container/Dockerfile b/contrib/container/Dockerfile index 29452b9c9a..b943e52711 100644 --- a/contrib/container/Dockerfile +++ b/contrib/container/Dockerfile @@ -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