mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
cdac7465b2
* Add redis container to development setup * Improve configurability of global cache: - Push configuration into separate file * Settings cache default depends on global cache configuration * Update docker compose file * Remove debug flag * Allow caching for registry checks * Cleanup docstring * Adjust defautl behaviour * Update docs for caching * Adjust default docker compose file * Update docs for devcontainer * Cleanup config template file * Update docker docs * Update cache behaviour
51 lines
1.4 KiB
Bash
51 lines
1.4 KiB
Bash
# InvenTree environment variables for docker compose deployment
|
|
|
|
# Specify the location of the external data volume
|
|
# By default, placed in local directory 'inventree-data'
|
|
INVENTREE_EXT_VOLUME=./inventree-data
|
|
|
|
# Ensure debug is false for a production setup
|
|
INVENTREE_DEBUG=False
|
|
INVENTREE_LOG_LEVEL=WARNING
|
|
|
|
# InvenTree admin account details
|
|
# Un-comment (and complete) these lines to auto-create an admin acount
|
|
#INVENTREE_ADMIN_USER=
|
|
#INVENTREE_ADMIN_PASSWORD=
|
|
#INVENTREE_ADMIN_EMAIL=
|
|
|
|
# Database configuration options
|
|
INVENTREE_DB_ENGINE=postgresql
|
|
INVENTREE_DB_NAME=inventree
|
|
INVENTREE_DB_HOST=inventree-db
|
|
INVENTREE_DB_PORT=5432
|
|
|
|
# Database credentials - These should be changed from the default values!
|
|
INVENTREE_DB_USER=pguser
|
|
INVENTREE_DB_PASSWORD=pgpassword
|
|
|
|
# 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_ENABLED=True
|
|
#INVENTREE_CACHE_HOST=inventree-cache
|
|
#INVENTREE_CACHE_PORT=6379
|
|
|
|
# Options for gunicorn server
|
|
INVENTREE_GUNICORN_TIMEOUT=90
|
|
|
|
# Enable custom plugins?
|
|
INVENTREE_PLUGINS_ENABLED=True
|
|
|
|
# Run migrations automatically?
|
|
INVENTREE_AUTO_UPDATE=True
|
|
|
|
# Image tag that should be used
|
|
INVENTREE_TAG=stable
|
|
|
|
# Site URL - update this to match your host
|
|
INVENTREE_SITE_URL="http://inventree.localhost"
|
|
|
|
COMPOSE_PROJECT_NAME=inventree
|