Replace redis with valkey
This commit is contained in:
parent
df8fb52ede
commit
c63d972086
|
@ -5,8 +5,6 @@ job "paperless" {
|
||||||
region = "global"
|
region = "global"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
group "paperless" {
|
group "paperless" {
|
||||||
network {
|
network {
|
||||||
mode = "bridge"
|
mode = "bridge"
|
||||||
|
@ -102,8 +100,8 @@ job "paperless" {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Local redis instance
|
# Local valkey instance
|
||||||
task "redis" {
|
task "valkey" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
user = 6379
|
user = 6379
|
||||||
|
|
||||||
|
@ -113,10 +111,11 @@ job "paperless" {
|
||||||
}
|
}
|
||||||
|
|
||||||
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 {
|
||||||
|
@ -127,13 +126,15 @@ databases 1
|
||||||
save ""
|
save ""
|
||||||
appendonly no
|
appendonly no
|
||||||
_EOT
|
_EOT
|
||||||
destination = "local/redis.conf"
|
destination = "local/valkey.conf"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
resources {
|
resources {
|
||||||
cpu = 10
|
cpu = 10
|
||||||
memory = 20
|
memory = 20
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@ job "[[ .instance ]]" {
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ template "common/task.wait_for" $c ]]
|
[[ template "common/task.wait_for" $c ]]
|
||||||
[[ template "common/task.redis" ]]
|
[[ template "common/task.redis" $c ]]
|
||||||
[[ template "common/task.pgpooler" $c ]]
|
[[ template "common/task.pgpooler" $c ]]
|
||||||
|
|
||||||
task "webserver" {
|
task "webserver" {
|
||||||
|
|
Loading…
Reference in New Issue