mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
Enable redis by default for docker setup (#8501)
* Enable redis by default for docker setup * Bring cache up before server
This commit is contained in:
parent
88bb06e75a
commit
33a686ace8
@ -24,13 +24,11 @@ INVENTREE_DB_PORT=5432
|
|||||||
INVENTREE_DB_USER=pguser
|
INVENTREE_DB_USER=pguser
|
||||||
INVENTREE_DB_PASSWORD=pgpassword
|
INVENTREE_DB_PASSWORD=pgpassword
|
||||||
|
|
||||||
# Redis cache setup (disabled by default)
|
# Redis cache setup
|
||||||
# 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
|
# Refer to settings.py for other cache options
|
||||||
#INVENTREE_CACHE_ENABLED=True
|
INVENTREE_CACHE_ENABLED=True
|
||||||
#INVENTREE_CACHE_HOST=inventree-cache
|
INVENTREE_CACHE_HOST=inventree-cache
|
||||||
#INVENTREE_CACHE_PORT=6379
|
INVENTREE_CACHE_PORT=6379
|
||||||
|
|
||||||
# Options for gunicorn server
|
# Options for gunicorn server
|
||||||
INVENTREE_GUNICORN_TIMEOUT=90
|
INVENTREE_GUNICORN_TIMEOUT=90
|
||||||
|
@ -71,6 +71,7 @@ services:
|
|||||||
- 8000
|
- 8000
|
||||||
depends_on:
|
depends_on:
|
||||||
- inventree-db
|
- inventree-db
|
||||||
|
- inventree-cache
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user