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

View File

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