Use new valkey to replace redis
This commit is contained in:
parent
183c87d919
commit
0e788699cd
|
@ -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"
|
||||||
|
|
|
@ -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 ]]
|
||||||
|
|
Loading…
Reference in New Issue