From 0a62a22438d3a4f04d2a1eb0441afb9e78ff4092 Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Sun, 22 May 2022 08:00:47 +0200 Subject: [PATCH] matrix: updated databases; added discord bridge --- stacks/matrix.yml | 49 ++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/stacks/matrix.yml b/stacks/matrix.yml index 2cadda2..ab04c9e 100644 --- a/stacks/matrix.yml +++ b/stacks/matrix.yml @@ -53,7 +53,7 @@ services: - 'facebook:/data' facebook-db: - image: 'postgres:14.2-alpine' + image: 'postgres:14.3-alpine' deploy: mode: 'replicated' @@ -109,7 +109,7 @@ services: - 'signald:/signald' signal-db: - image: 'postgres:14.2-alpine' + image: 'postgres:14.3-alpine' deploy: mode: 'replicated' @@ -134,7 +134,7 @@ services: # =====IRC BRIDGE===== irc: - image: 'hif1/heisenbridge:1.12.0' + image: 'hif1/heisenbridge:1.13.0' command: > -c /data/config.yaml http://conduit:6167 @@ -149,6 +149,47 @@ services: volumes: - 'irc:/data' + # =====DISCORD BRIDGE===== + discord: + image: 'dock.mau.dev/mautrix/discord:latest' + + deploy: + mode: 'replicated' + replicas: 1 + placement: + constraints: + - 'node.labels.class==matrix' + + networks: + - 'default' + - 'monitoring' + volumes: + - 'discord:/data' + + discord-db: + image: 'postgres:14.3-alpine' + + deploy: + mode: 'replicated' + replicas: 1 + placement: + constraints: + - 'node.labels.class==matrix' + + healthcheck: + test: pg_isready -U matrix_discord + interval: 30s + timeout: 5s + retries: 3 + start_period: 15s + + environment: + - 'POSTGRES_DB=matrix_discord' + - 'POSTGRES_USER=matrix_discord' + - 'POSTGRES_PASSWORD=matrix_discord' + volumes: + - 'discord-db:/var/lib/postgresql/data' + configs: conduit_v7: external: true @@ -167,3 +208,5 @@ volumes: signald: signal-db: irc: + discord: + discord-db: