synapse. Reconfiguring networks.

This commit is contained in:
Alexey Skobkin 2022-03-19 03:09:50 +03:00
parent 048f32f8d8
commit aca78fc57d
1 changed files with 3 additions and 2 deletions

View File

@ -6,8 +6,9 @@ services:
# 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'
ports:
- "${INTERFACE_EXT:-127.0.0.1}:${HTTP_PORT_EXT:-8008}:${HTTP_PORT_INT:-8008}/tcp"
volumes: