From 8a6dda10b1855158293555fe91322e545c2d5694 Mon Sep 17 00:00:00 2001 From: James Date: Thu, 21 Apr 2022 20:25:13 +0100 Subject: [PATCH] add redis for potential workers --- .env.example | 4 ++++ docker-compose.yaml | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 46f2859..74e12ab 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,7 @@ # Docker settings VOLUME_PATH=/data/matrix DOCKER_PROXY_NETWORK=proxy # Replace with your proxy's network +DOCKER_PROXY_EXT=false # synapse SYNAPSE_IMAGE_TAG=latest @@ -16,3 +17,6 @@ SYNAPSE_ADMIN_PORT=8080 # postgres POSTGRESQL_IMAGE_TAG=14 + +# redis +REDIS_IMAGE_TAG=6 diff --git a/docker-compose.yaml b/docker-compose.yaml index dcff667..23c2287 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,7 +4,7 @@ secrets: networks: frontend: - external: true + external: ${DOCKER_PROXY_EXT-true} name: ${DOCKER_PROXY_NETWORK} backend: @@ -24,6 +24,12 @@ services: POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password POSTGRES_INITDB_ARGS: --encoding=UTF8 --locale=C + redis: + image: redis:${REDIS_IMAGE_TAG} + restart: unless-stopped + networks: + - backend + synapse: image: matrixdotorg/synapse:${SYNAPSE_IMAGE_TAG} restart: unless-stopped