From 1b6e67dba6da0f7479484fd710cc53264cd784fa Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sat, 19 Mar 2022 03:09:50 +0300 Subject: [PATCH] synapse-admin. Reconfiguring networks. --- synapse/docker-compose.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/synapse/docker-compose.yml b/synapse/docker-compose.yml index 5f694ab..f73ff4e 100644 --- a/synapse/docker-compose.yml +++ b/synapse/docker-compose.yml @@ -1,13 +1,22 @@ version: '3.7' +networks: + # You need to create this network manually first! + synapse: + external: true + services: synapse: # https://hub.docker.com/r/matrixdotorg/synapse # https://github.com/matrix-org/synapse/tree/master/docker image: "matrixdotorg/synapse:${IMAGE_VERSION:-latest}" container_name: synapse - # This way we'll be able to access PostgreSQL on local machine using 'localhost' when it's listening only locally. - network_mode: host + hostname: synapse + extra_hosts: + - 'host.docker.internal:host-gateway' + networks: + - default + - synapse ports: - "${INTERFACE_EXT:-127.0.0.1}:${HTTP_PORT_EXT:-8008}:${HTTP_PORT_INT:-8008}/tcp" volumes: