mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-19 20:24:32 +02:00
ephemeral behavior for redis (#2373)
* ephemeral behavior for redis * notes for redis command line consistency
This commit is contained in:
@@ -346,12 +346,11 @@ services:
|
||||
restart: always
|
||||
ports:
|
||||
- '6379:6379'
|
||||
command: redis-server
|
||||
volumes:
|
||||
- cache_volume:/data
|
||||
# docker silently mounts /data even without an explicit volume mount, which enables
|
||||
# persistence. explicitly setting save and appendonly forces ephemeral behavior.
|
||||
command: redis-server --save "" --appendonly no
|
||||
|
||||
volumes:
|
||||
cache_volume:
|
||||
db_volume:
|
||||
vespa_volume: # Created by the container itself
|
||||
|
||||
|
@@ -358,13 +358,12 @@ services:
|
||||
restart: always
|
||||
ports:
|
||||
- '6379:6379'
|
||||
command: redis-server
|
||||
volumes:
|
||||
- cache_volume:/data
|
||||
# docker silently mounts /data even without an explicit volume mount, which enables
|
||||
# persistence. explicitly setting save and appendonly forces ephemeral behavior.
|
||||
command: redis-server --save "" --appendonly no
|
||||
|
||||
|
||||
volumes:
|
||||
cache_volume:
|
||||
db_volume:
|
||||
vespa_volume:
|
||||
# Created by the container itself
|
||||
|
@@ -213,13 +213,12 @@ services:
|
||||
restart: always
|
||||
ports:
|
||||
- '6379:6379'
|
||||
command: redis-server
|
||||
volumes:
|
||||
- cache_volume:/data
|
||||
# docker silently mounts /data even without an explicit volume mount, which enables
|
||||
# persistence. explicitly setting save and appendonly forces ephemeral behavior.
|
||||
command: redis-server --save "" --appendonly no
|
||||
|
||||
|
||||
volumes:
|
||||
cache_volume:
|
||||
db_volume:
|
||||
vespa_volume:
|
||||
# Created by the container itself
|
||||
|
@@ -230,13 +230,12 @@ services:
|
||||
restart: always
|
||||
ports:
|
||||
- '6379:6379'
|
||||
command: redis-server
|
||||
volumes:
|
||||
- cache_volume:/data
|
||||
# docker silently mounts /data even without an explicit volume mount, which enables
|
||||
# persistence. explicitly setting save and appendonly forces ephemeral behavior.
|
||||
command: redis-server --save "" --appendonly no
|
||||
|
||||
|
||||
volumes:
|
||||
cache_volume:
|
||||
db_volume:
|
||||
vespa_volume:
|
||||
# Created by the container itself
|
||||
|
@@ -209,13 +209,12 @@ services:
|
||||
restart: always
|
||||
ports:
|
||||
- '6379:6379'
|
||||
command: redis-server
|
||||
volumes:
|
||||
- cache_volume:/data
|
||||
# docker silently mounts /data even without an explicit volume mount, which enables
|
||||
# persistence. explicitly setting save and appendonly forces ephemeral behavior.
|
||||
command: redis-server --save "" --appendonly no
|
||||
|
||||
|
||||
volumes:
|
||||
cache_volume:
|
||||
db_volume:
|
||||
driver: local
|
||||
driver_opts:
|
||||
|
@@ -38,4 +38,11 @@ spec:
|
||||
name: danswer-secrets
|
||||
key: redis_password
|
||||
command: ["redis-server"]
|
||||
args: ["--requirepass", "$(REDIS_PASSWORD)"]
|
||||
args:
|
||||
# save and appendonly are not strictly necessary because kubernetes doesn't mount
|
||||
# /data silently like docker, but add the save and appendonly for consistency
|
||||
[
|
||||
"--requirepass", "$(REDIS_PASSWORD)",
|
||||
"--save", "",
|
||||
"--appendonly", "no"
|
||||
]
|
||||
|
Reference in New Issue
Block a user