Before running the install script install PostgreSQL, create a DB and a user/role:

apt install postgresql
su - postgres
createuser -P inventree
createdb -O inventree inventree

Then set the environment variables:

export INVENTREE_DB_ENGINE=postgresql
export INVENTREE_DB_NAME=inventree
export INVENTREE_DB_HOST=inventree
export INVENTREE_DB_PORT=5432
export INVENTREE_DB_USER=inventree
export INVENTREE_DB_PASSWORD=<secret_password>

And also set an additional pip package which was missing at the time of writing:

export SETUP_EXTRA_PIP=psycopg2-binary

Verwandte Artikel