Use new valkey to replace redis

This commit is contained in:
Daniel Berteaud 2024-04-11 23:30:56 +02:00
parent 183c87d919
commit 0e788699cd
2 changed files with 11 additions and 8 deletions

View File

@ -7,8 +7,6 @@ job "immich" {
region = "global"
group "immich" {
network {
@ -16,6 +14,7 @@ job "immich" {
}
volume "data" {
source = "immich-data"
type = "csi"
@ -268,8 +267,8 @@ _EOT
}
# Local redis instance
task "redis" {
# Local valkey instance
task "valkey" {
driver = "docker"
user = 6379
@ -279,10 +278,11 @@ _EOT
}
config {
image = "redis:alpine"
image = "danielberteaud/valkey:24.4-1"
readonly_rootfs = true
force_pull = true
args = ["/local/redis.conf"]
pids_limit = 100
args = ["/local/valkey.conf"]
}
template {
@ -293,13 +293,15 @@ databases 1
save ""
appendonly no
_EOT
destination = "local/redis.conf"
destination = "local/valkey.conf"
}
resources {
cpu = 20
memory = 64
}
}
@ -312,6 +314,7 @@ _EOT
}
volume "ml" {
source = "immich-ml"
type = "csi"

View File

@ -136,7 +136,7 @@ _EOT
[[ template "common/resources" $c ]]
}
[[ template "common/task.redis" dict "resources" .immich.redis.resources ]]
[[ template "common/task.redis" $c ]]
}
[[- if .immich.machine_learning.enabled ]]