synapse-admin. networks.
This commit is contained in:
parent
28801b1b75
commit
074ea359e7
|
@ -1,12 +1,18 @@
|
||||||
# https://hub.docker.com/r/awesometechnologies/synapse-admin
|
# https://hub.docker.com/r/awesometechnologies/synapse-admin
|
||||||
version: '3.7'
|
version: '3.7'
|
||||||
|
|
||||||
|
networks:
|
||||||
|
# You need to create this network manually first!
|
||||||
|
synapse:
|
||||||
|
external: true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
synapse-admin:
|
synapse-admin:
|
||||||
image: awesometechnologies/synapse-admin
|
image: awesometechnologies/synapse-admin
|
||||||
container_name: synapse-admin
|
container_name: synapse-admin
|
||||||
hostname: synapse-admin
|
hostname: synapse-admin
|
||||||
network_mode: host
|
networks:
|
||||||
|
- synapse
|
||||||
ports:
|
ports:
|
||||||
- "${WEBUI_BIND_ADDR:-127.0.0.1}:${WEBUI_BIND_PORT:-8009}:80"
|
- "${WEBUI_BIND_ADDR:-127.0.0.1}:${WEBUI_BIND_PORT:-8009}:80"
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
|
|
@ -1,6 +1,14 @@
|
||||||
# [Synapse](https://matrix.org/docs/projects/server/synapse) ([Matrix.org](https://matrix.org/) server)
|
# [Synapse](https://matrix.org/docs/projects/server/synapse) ([Matrix.org](https://matrix.org/) server)
|
||||||
|
|
||||||
# Generating server configuration
|
## Shared network
|
||||||
|
|
||||||
|
You MUST create a shared network `synapse` for potential ability to communicate with synapse from `synapse-admin` stack.
|
||||||
|
|
||||||
|
```shell
|
||||||
|
docker network create --internal synapse
|
||||||
|
```
|
||||||
|
|
||||||
|
## Generating server configuration
|
||||||
|
|
||||||
Do not forget to prepare `.env` file before running this.
|
Do not forget to prepare `.env` file before running this.
|
||||||
|
|
||||||
|
@ -12,7 +20,7 @@ After that you can edit `./data/homeserver.yaml` according to your needs.
|
||||||
|
|
||||||
If you want to use full-fledged PostgreSQL instead of SQLite, you can check [this documentation](https://github.com/matrix-org/synapse/blob/master/docs/postgres.md).
|
If you want to use full-fledged PostgreSQL instead of SQLite, you can check [this documentation](https://github.com/matrix-org/synapse/blob/master/docs/postgres.md).
|
||||||
|
|
||||||
# Running the server
|
## Running the server
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
|
|
@ -1,13 +1,23 @@
|
||||||
version: '3.7'
|
version: '3.7'
|
||||||
|
|
||||||
|
networks:
|
||||||
|
# This way we'll be able to access PostgreSQL on local machine using 'localhost' when it's listening only locally.
|
||||||
|
hostnet:
|
||||||
|
external: true
|
||||||
|
name: host
|
||||||
|
# You need to create this network manually first!
|
||||||
|
synapse:
|
||||||
|
external: true
|
||||||
|
|
||||||
services:
|
services:
|
||||||
synapse:
|
synapse:
|
||||||
# https://hub.docker.com/r/matrixdotorg/synapse
|
# https://hub.docker.com/r/matrixdotorg/synapse
|
||||||
# https://github.com/matrix-org/synapse/tree/master/docker
|
# https://github.com/matrix-org/synapse/tree/master/docker
|
||||||
image: "matrixdotorg/synapse:${IMAGE_VERSION:-latest}"
|
image: "matrixdotorg/synapse:${IMAGE_VERSION:-latest}"
|
||||||
container_name: synapse
|
container_name: synapse
|
||||||
# This way we'll be able to access PostgreSQL on local machine using 'localhost' when it's listening only locally.
|
networks:
|
||||||
network_mode: host
|
- hostnet
|
||||||
|
- synapse
|
||||||
ports:
|
ports:
|
||||||
- "${INTERFACE_EXT:-127.0.0.1}:${HTTP_PORT_EXT:-8008}:${HTTP_PORT_INT:-8008}/tcp"
|
- "${INTERFACE_EXT:-127.0.0.1}:${HTTP_PORT_EXT:-8008}:${HTTP_PORT_INT:-8008}/tcp"
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in a new issue