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