mirror of
https://github.com/inventree/InvenTree.git
synced 2026-01-11 05:37:54 +00:00
Save redis data in docker volume to prevent creating new volume on each container start (#11100)
* Save redis data in docker volume to prevent creating new volume on each container start * Correction in comment about redis - is enabled by default
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
# - gunicorn as the InvenTree web server
|
# - gunicorn as the InvenTree web server
|
||||||
# - django-q as the InvenTree background worker process
|
# - django-q as the InvenTree background worker process
|
||||||
# - Caddy as a reverse proxy
|
# - Caddy as a reverse proxy
|
||||||
# - redis as the cache manager (optional, disabled by default)
|
# - redis as the cache manager (optional, enabled by default)
|
||||||
|
|
||||||
# ---------------------
|
# ---------------------
|
||||||
# READ BEFORE STARTING!
|
# READ BEFORE STARTING!
|
||||||
@@ -64,6 +64,8 @@ services:
|
|||||||
- .env
|
- .env
|
||||||
expose:
|
expose:
|
||||||
- ${INVENTREE_CACHE_PORT:-6379}
|
- ${INVENTREE_CACHE_PORT:-6379}
|
||||||
|
volumes:
|
||||||
|
- ${INVENTREE_EXT_VOLUME}/redis:/data
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
# InvenTree web server service
|
# InvenTree web server service
|
||||||
|
|||||||
Reference in New Issue
Block a user