redis/valkey cache

This commit is contained in:
Benjamin Brummer
2025-01-12 11:43:08 +00:00
parent 103b912467
commit 797aa6bdf8
2 changed files with 15 additions and 1 deletions

View File

@@ -82,6 +82,15 @@ services:
# networks:
# - invoiceninja
#
valkey:
image: valkey/valkey:8
restart: unless-stopped
healthcheck:
test: [ "CMD", "valkey-cli", "ping" ]
start_period: 10s
networks:
- invoiceninja
logging: *default-logging
networks:
invoiceninja:

7
env
View File

@@ -7,8 +7,13 @@ PHANTOMJS_PDF_GENERATION=false
PDF_GENERATOR=snappdf
TRUSTED_PROXIES='*'
CACHE_DRIVER=redis
QUEUE_CONNECTION=redis
SESSION_DRIVER=redis
QUEUE_CONNECTION=database
REDIS_HOST=valkey
REDIS_PASSWORD=null
REDIS_PORT=6379
# DB connection
DB_HOST=db