mirror of
https://github.com/inventree/InvenTree.git
synced 2026-07-21 14:13:06 +00:00
* fix(ui): show initial stock fields when PART_CREATE_INITIAL enabled (#12266) * Fix Docker setup for local Windows deployment. Disable Redis disk persistence to avoid bind-mount permission errors that caused login 500s, and configure localhost as the default site URL. * Apply Biome formatting to Playwright test file. Fixes Style [prek] CI failure on PR #12415. * Use specific locators in initial stock Playwright tests. Avoid strict-mode violations from getByText('Initial Stock') matching multiple form elements. * Scope initial stock Playwright test to part detail Stock tab. Avoid strict-mode violations from duplicate Stock tabs on the part page. * Use raw SQL inserts in MPTT migration test setup. Avoid duplicate status_custom_key ORM bug in historical StockItem models.
65 lines
2.2 KiB
Bash
65 lines
2.2 KiB
Bash
# InvenTree environment variables for docker compose deployment
|
|
# For a full list of the available configuration options, refer to the InvenTree documentation:
|
|
# https://docs.inventree.org/en/stable/start/config/
|
|
|
|
# Specify the name of the docker-compose project
|
|
COMPOSE_PROJECT_NAME=inventree
|
|
|
|
# InvenTree version tag (e.g. 'stable' / 'latest' / 'x.x.x')
|
|
INVENTREE_TAG=stable
|
|
|
|
# InvenTree server URL - update this to match your server URL
|
|
# Local: http://localhost or http://inventree.localhost (requires hosts entry)
|
|
# LAN: http://192.168.133.37
|
|
INVENTREE_SITE_URL="http://localhost"
|
|
#INVENTREE_SITE_URL="http://inventree.localhost"
|
|
#INVENTREE_SITE_URL="https://inventree.my-domain.com" # Or a public domain name (which you control)
|
|
INVENTREE_WEB_PORT=8000
|
|
|
|
# InvenTree proxy forwarding settings
|
|
INVENTREE_USE_X_FORWARDED_HOST=True
|
|
INVENTREE_USE_X_FORWARDED_PORT=True
|
|
INVENTREE_USE_X_FORWARDED_PROTO=True
|
|
|
|
# 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_LOG_LEVEL=WARNING
|
|
|
|
# Enable custom plugins?
|
|
INVENTREE_PLUGINS_ENABLED=True
|
|
|
|
# Run database migrations automatically?
|
|
# Note: This does not negate the need to run "invoke update"
|
|
INVENTREE_AUTO_UPDATE=True
|
|
|
|
# InvenTree superuser account details
|
|
# Demo dataset includes its own users — see docs/demo.md
|
|
#INVENTREE_ADMIN_USER=admin
|
|
#INVENTREE_ADMIN_PASSWORD=admin
|
|
#INVENTREE_ADMIN_EMAIL=admin@localhost
|
|
|
|
# Database configuration options
|
|
# DO NOT CHANGE THESE SETTINGS (unless you really know what you are doing)
|
|
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!
|
|
# Note: These are *NOT* the InvenTree server login credentials,
|
|
# they are the credentials for the PostgreSQL database
|
|
INVENTREE_DB_USER=pguser
|
|
INVENTREE_DB_PASSWORD=pgpassword
|
|
|
|
# Redis cache setup
|
|
# Refer to the documentation 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
|