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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user