Simplify dockerfile

This commit is contained in:
Oliver Walters 2021-04-02 00:54:29 +11:00
parent 2436b1f2c9
commit 00c4519d28
2 changed files with 1 additions and 13 deletions

View File

@ -5,22 +5,10 @@ ARG INVENTREE_REPO="https://github.com/inventree/InvenTree.git"
ARG INVENTREE_VERSION="master"
ARG INVENTREE_CONFIG_FILE="InvenTree/config_template.yaml"
# InvenTree server port
ARG INVENTREE_PORT="80"
# Database configuration options
ARG INVENTREE_DB_ENGINE="sqlite3"
ARG INVENTREE_DB_NAME="inventree_db.sqlite3"
ARG INVENTREE_DB_HOST="127.0.0.1"
ARG INVENTREE_DB_PORT=""
ARG INVENTREE_DB_USER=""
ARG INVENTREE_DB_PASSWORD=""
ENV PYTHONUNBUFFERED 1
# InvenTree key settings
ENV INVENTREE_HOME="/home/inventree"
ENV INVENTREE_PORT="${INVENTREE_PORT}"
ENV INVENTREE_LOG_LEVEL="INFO"

View File

@ -18,7 +18,7 @@ nodaemon=true
[program:inventree-server]
user=inventree
directory=%(ENV_INVENTREE_SRC_DIR)s/InvenTree
command=%(ENV_INVENTREE_VENV)s/bin/gunicorn -c %(ENV_INVENTREE_HOME)s/gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:%(ENV_INVENTREE_PORT)s
command=%(ENV_INVENTREE_VENV)s/bin/gunicorn -c %(ENV_INVENTREE_HOME)s/gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:80
startsecs=10
autostart=true
autorestart=true