
Django AllAuth dropped keycloak in recent release: https://django-allauth.readthedocs.io/en/latest/socialaccount/providers/keycloak.html
67 lines
2.1 KiB
Bash
67 lines
2.1 KiB
Bash
# InvenTree environment variables for a postgresql production setup
|
|
COMPOSE_PROJECT_NAME=inventree
|
|
|
|
# Location of persistent database data (stored external to the docker containers)
|
|
# Note: You *must* un-comment this line, and point it to a path on your local machine
|
|
|
|
# e.g. Linux
|
|
INVENTREE_EXT_VOLUME=data
|
|
|
|
# e.g. Windows (docker desktop)
|
|
#INVENTREE_EXT_VOLUME=c:/Users/me/inventree-data
|
|
|
|
# Default web port for the InvenTree server
|
|
INVENTREE_WEB_PORT=8080
|
|
|
|
# Ensure debug is false for a production setup
|
|
INVENTREE_DEBUG=False
|
|
INVENTREE_LOG_LEVEL=WARNING
|
|
|
|
# Database configuration options
|
|
# Note: The example setup is for a PostgreSQL database
|
|
INVENTREE_DB_ENGINE=postgresql
|
|
INVENTREE_DB_NAME=inventree
|
|
INVENTREE_DB_HOST=inventree-db
|
|
INVENTREE_DB_PORT=5432
|
|
|
|
# Redis cache setup (disabled by default)
|
|
# Un-comment the following lines to enable Redis cache
|
|
# Note that you will also have to run docker-compose with the --profile redis command
|
|
# Refer to settings.py for other cache options
|
|
#INVENTREE_CACHE_HOST=inventree-cache
|
|
#INVENTREE_CACHE_PORT=6379
|
|
|
|
# Options for gunicorn server
|
|
INVENTREE_GUNICORN_TIMEOUT=30
|
|
|
|
# Enable custom plugins?
|
|
INVENTREE_PLUGINS_ENABLED=False
|
|
|
|
# Image tag that should be used
|
|
INVENTREE_IMAGE=inventree/inventree:0.11.3
|
|
REDIS_IMAGE=redis:7.0-alpine
|
|
NGINX_IMAGE=nginxinc/nginx-unprivileged:stable-alpine
|
|
# Postgres image must match version of pgdump in inventree image
|
|
POSTGRES_IMAGE=postgres:13-alpine
|
|
|
|
# InvenTree admin account details
|
|
# make sure to use secure credentials these lines to auto-create an admin acount
|
|
INVENTREE_ADMIN_USER=admin
|
|
INVENTREE_ADMIN_PASSWORD=password
|
|
INVENTREE_ADMIN_EMAIL=admin@inventree.example
|
|
|
|
# Database credentials - These must be configured before running
|
|
# Change from the default values!
|
|
INVENTREE_DB_USER=inventree
|
|
INVENTREE_DB_PASSWORD=password
|
|
|
|
# Django configuration
|
|
INVENTREE_SECRET_KEY=some-secret-key
|
|
ALLOWED_HOSTS=inventree.example.com,www.inventree.example.com
|
|
|
|
# SSO Config
|
|
INVENTREE_SOCIAL_BACKENDS=allauth.socialaccount.providers.openid_connect
|
|
|
|
HKNG_OIDC_URL=https://keycloak.example.com/realms/master/.well-known/openid-configuration
|
|
HKNG_OIDC_CLIENT_ID=example-client
|
|
HKNG_OIDC_SECRET=example-secret
|