Telegram bridge for Matrix #33

Merged
skobkin merged 3 commits from feature_mautrix_telegram into master 2022-03-25 01:07:30 +00:00
5 changed files with 55 additions and 2 deletions
Showing only changes of commit bc77d66a61 - Show all commits

View file

@ -0,0 +1,10 @@
# see https://mau.dev/mautrix/telegram/
IMAGE_VERSION=latest
HOST_USER=1337
HOST_GROUP=1337
HOST_DATA_DIR=./data
LOG_MAX_SIZE=5m
LOG_MAX_FILE=5

2
mautrix-telegram/data/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/*
!/.gitignore

View file

@ -0,0 +1,28 @@
# https://mau.dev/mautrix/telegram/
version: '3.7'
services:
mautrix-telegram:
image: "dock.mau.dev/mautrix/telegram:${IMAGE_VERSION:-latest}"
container_name: mautrix-telegram
volumes:
- "${HOST_DATA_DIR}:/data"
env_file: .env
environment:
UID: "${HOST_USER:-1337}"
GID: "${HOST_GROUP:-1337}"
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- default
- matrix
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE:-5m}"
max-file: "${LOG_MAX_FILE:-5}"
networks:
matrix:
external: true

View file

@ -1,6 +1,12 @@
# [Synapse](https://matrix.org/docs/projects/server/synapse) ([Matrix.org](https://matrix.org/) server)
# Generating server configuration
## Create internal network for Matrix services
```shell
docker network create --internal matrix
```
## Generate server configuration
Do not forget to prepare `.env` file before running this.
@ -15,7 +21,7 @@ If you want to use full-fledged PostgreSQL instead of SQLite, you can check
To use PostgreSQL running on the host machine, use [this](../_docs/access_database_on_host_from_docker.md) configuration.
# Running the server
## Run the server
```shell
docker-compose up -d

View file

@ -16,9 +16,16 @@ services:
# SSL certs directory
- "${SSL_PATH:-./ssl}:/ssl:ro"
env_file: .env
networks:
- default
- matrix
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE:-5m}"
max-file: "${LOG_MAX_FILE:-5}"
networks:
matrix:
external: true