add redis for potential workers

This commit is contained in:
James 2022-04-21 20:25:13 +01:00
parent 38010bbc83
commit 8a6dda10b1
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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