make INVENTREE_WEB_PORT more usefull (#11352)

* make INVENTREE_WEB_PORT more usefull

* Update contrib/container/docker-compose.yml

Co-authored-by: Philipp Fruck <dev@p-fruck.de>

* revert change

* Fix indentation for environment variable in docker-compose

---------

Co-authored-by: Philipp Fruck <dev@p-fruck.de>
This commit is contained in:
Matthias Mair
2026-02-20 21:10:49 +11:00
committed by GitHub
co-authored by Philipp Fruck
parent 3910cc5a50
commit 782c765685
3 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -76,12 +76,14 @@ services:
container_name: inventree-server
# Only change this port if you understand the stack.
expose:
- 8000
- ${INVENTREE_WEB_PORT:-8000}
depends_on:
- inventree-db
- inventree-cache
env_file:
- .env
environment:
INVENTREE_SERVER: http://inventree-server:${INVENTREE_WEB_PORT}
volumes:
# Data volume must map to /home/inventree/data
- ${INVENTREE_EXT_VOLUME}:/home/inventree/data:z