mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix install
Also make the web port configurable
This commit is contained in:
parent
c07aef7f75
commit
69473b9bff
@ -26,6 +26,9 @@ ENV INVENTREE_BACKUP_DIR="${INVENTREE_DATA_DIR}/backup"
|
|||||||
ENV INVENTREE_CONFIG_FILE="${INVENTREE_DATA_DIR}/config.yaml"
|
ENV INVENTREE_CONFIG_FILE="${INVENTREE_DATA_DIR}/config.yaml"
|
||||||
ENV INVENTREE_SECRET_KEY_FILE="${INVENTREE_DATA_DIR}/secret_key.txt"
|
ENV INVENTREE_SECRET_KEY_FILE="${INVENTREE_DATA_DIR}/secret_key.txt"
|
||||||
|
|
||||||
|
# Default web server port is 8000
|
||||||
|
ENV INVENTREE_WEB_PORT="8000"
|
||||||
|
|
||||||
# Pass DB configuration through as environment variables
|
# Pass DB configuration through as environment variables
|
||||||
ENV INVENTREE_DB_ENGINE="${INVENTREE_DB_ENGINE}"
|
ENV INVENTREE_DB_ENGINE="${INVENTREE_DB_ENGINE}"
|
||||||
ENV INVENTREE_DB_NAME="${INVENTREE_DB_NAME}"
|
ENV INVENTREE_DB_NAME="${INVENTREE_DB_NAME}"
|
||||||
@ -68,7 +71,7 @@ RUN apk add --no-cache python3 python3-dev
|
|||||||
RUN apk add --no-cache sqlite
|
RUN apk add --no-cache sqlite
|
||||||
|
|
||||||
# PostgreSQL support
|
# PostgreSQL support
|
||||||
RUN apk add --no-cache postgresql-contrib postgresql-dev libpq pg_dump
|
RUN apk add --no-cache postgresql postgresql-contrib postgresql-dev libpq
|
||||||
|
|
||||||
# MySQL support
|
# MySQL support
|
||||||
RUN apk add --no-cache mariadb-connector-c mariadb-dev mysqldump
|
RUN apk add --no-cache mariadb-connector-c mariadb-dev mysqldump
|
||||||
|
@ -43,4 +43,4 @@ python manage.py collectstatic --noinput || exit 1
|
|||||||
python manage.py clearsessions || exit 1
|
python manage.py clearsessions || exit 1
|
||||||
|
|
||||||
# Now we can launch the server
|
# Now we can launch the server
|
||||||
gunicorn -c $INVENTREE_HOME/gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:8080
|
gunicorn -c $INVENTREE_HOME/gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:$INVENTREE_WEB_PORT
|
||||||
|
Loading…
Reference in New Issue
Block a user