Telegram bridge for Matrix #33
10
mautrix-telegram/.env.dist
Normal file
10
mautrix-telegram/.env.dist
Normal 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
2
mautrix-telegram/data/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
/*
|
||||||
|
!/.gitignore
|
28
mautrix-telegram/docker-compose.yml
Normal file
28
mautrix-telegram/docker-compose.yml
Normal 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
|
|
@ -1,6 +1,12 @@
|
||||||
# [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
|
## 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.
|
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.
|
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
|
```shell
|
||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
|
|
|
@ -16,9 +16,16 @@ services:
|
||||||
# SSL certs directory
|
# SSL certs directory
|
||||||
- "${SSL_PATH:-./ssl}:/ssl:ro"
|
- "${SSL_PATH:-./ssl}:/ssl:ro"
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
- matrix
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
max-size: "${LOG_MAX_SIZE:-5m}"
|
max-size: "${LOG_MAX_SIZE:-5m}"
|
||||||
max-file: "${LOG_MAX_FILE:-5}"
|
max-file: "${LOG_MAX_FILE:-5}"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
matrix:
|
||||||
|
external: true
|
||||||
|
|
Loading…
Reference in a new issue