mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Simplify dockerfile
This commit is contained in:
parent
2436b1f2c9
commit
00c4519d28
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user