From 71062a2d40961c396aba93e5e61f3bd59c8872b9 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 10 Jan 2022 21:36:27 +0100 Subject: Matrix media natively on S3 --- app/im/deploy/im.hcl | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) (limited to 'app/im/deploy/im.hcl') diff --git a/app/im/deploy/im.hcl b/app/im/deploy/im.hcl index fd97c7b..1902978 100644 --- a/app/im/deploy/im.hcl +++ b/app/im/deploy/im.hcl @@ -52,10 +52,10 @@ job "im" { task "synapse" { driver = "docker" config { - image = "matrixdotorg/synapse:v1.48.0" + image = "lxpz/amd64_synapse:test7" ports = [ "http" ] - entrypoint = [ "/usr/local/bin/python" ] + command = "python" args = [ "-m", "synapse.app.homeserver", "-n", @@ -65,7 +65,6 @@ job "im" { volumes = [ "secrets:/etc/matrix-synapse", "../alloc/data:/ephemeral", - "/mnt/garage-staging/synapse-data:/data", ] } @@ -105,6 +104,35 @@ job "im" { } } + task "media-async-upload" { + driver = "docker" + + config { + image = "lxpz/amd64_synapse:test7" + readonly_rootfs = true + command = "/usr/local/bin/matrix-s3-async-sqlite" + work_dir = "/ephemeral" + volumes = [ + "../alloc/data:/ephemeral", + ] + } + + resources { + cpu = 100 + memory = 200 + } + + template { + data = <