From e94cb54661e60aaaa7386560c282710e89d71198 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 4 Oct 2023 11:51:04 +0200 Subject: [PATCH] prod: add matrix syncv3 daemon --- cluster/prod/app/matrix/deploy/im.hcl | 65 +++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/cluster/prod/app/matrix/deploy/im.hcl b/cluster/prod/app/matrix/deploy/im.hcl index e373da4..a6c4fe5 100644 --- a/cluster/prod/app/matrix/deploy/im.hcl +++ b/cluster/prod/app/matrix/deploy/im.hcl @@ -176,5 +176,70 @@ EOH } } } + + group "syncv3" { + count = 1 + + network { + port "syncv3_api" { to = 8009 } + port "syncv3_metrics" { to = 2112 } + } + + task "syncv3" { + driver = "docker" + + config { + image = "ghcr.io/matrix-org/sliding-sync:v0.99.10" + ports = [ "syncv3_api", "syncv3_metrics" ] + } + + resources { + cpu = 1000 + memory = 500 + memory_max = 1000 + } + + template { + data = <