2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 02:25:38 +00:00

Refactoring docker-compose.postgresql.yml

- Do not require duplication of username / password values
- Specify different env file
- Move to a new child directory which simplifies setup
This commit is contained in:
Oliver Walters
2022-04-20 21:44:22 +10:00
parent f0a01587ac
commit e4e735a71b
3 changed files with 4 additions and 10 deletions

19
docker/production/.env Normal file
View File

@ -0,0 +1,19 @@
# InvenTree environment variables for a postgresql production setup
# Note: If your production setup varies from the example, you may want to change these values
# 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 (change as required)
INVENTREE_DB_ENGINE=postgresql
INVENTREE_DB_NAME=inventree
INVENTREE_DB_HOST=inventree-db
INVENTREE_DB_PORT=5432
INVENTREE_DB_USER=pguser
INVENTREE_DB_PASSWORD=pgpassword
# Enable plugins?
INVENTREE_PLUGINS_ENABLED=False