initial dump of deployment files
This commit is contained in:
commit
16e3c3fb31
8 changed files with 1593 additions and 0 deletions
68
sample.env
Normal file
68
sample.env
Normal file
|
@ -0,0 +1,68 @@
|
|||
# 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.10.1
|
||||
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.keycloak
|
||||
|
||||
HKNG_KEYCLOAK_URL=https://keycloak.example.com
|
||||
HKNG_KEYCLOAK_REALM=master
|
||||
HKNG_KEYCLOAK_CLIENT_ID=example-client
|
||||
HKNG_KEYCLOAK_CLIENT_SECRET=example-secret
|
Loading…
Add table
Add a link
Reference in a new issue