Skip to content

Commit

Permalink
Update directus-mysql-redis.yml (#956)
Browse files Browse the repository at this point in the history
Since Directus 10.4.0 we need to use the `REDIS` env var instead of `CACHE_REDIS`. By keeping both vars it will work for previous as well as for future versions.
  • Loading branch information
JonathanDoelan authored Jun 28, 2023
1 parent 9b0a1ff commit ae07954
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/v4/apps/directus-mysql-redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ services:
DB_PASSWORD: $$cap_mysql_password
CACHE_ENABLED: 'true'
CACHE_STORE: 'redis'
CACHE_REDIS: redis://srv-captain--$$cap_appname-redis:6379
CACHE_AUTO_PURGE: $$cap_redis_auto_purge
CACHE_TTL: $$cap_redis_ttl
# Before Directus 10.4.0
CACHE_REDIS: redis://srv-captain--$$cap_appname-redis:6379
# Since Directus 10.4.0
REDIS: redis://srv-captain--$$cap_appname-redis:6379
ADMIN_EMAIL: $$cap_admin_email
ADMIN_PASSWORD: $$cap_admin_password
TELEMETRY: 'false'
Expand Down

0 comments on commit ae07954

Please sign in to comment.