2020-08-05 17:50:51 +00:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
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
|
2022-03-19 00:09:50 +00:00
|
|
|
hostname: synapse
|
|
|
|
extra_hosts:
|
|
|
|
- 'host.docker.internal:host-gateway'
|
2020-08-05 20:17:36 +00:00
|
|
|
ports:
|
|
|
|
- "${INTERFACE_EXT:-127.0.0.1}:${HTTP_PORT_EXT:-8008}:${HTTP_PORT_INT:-8008}/tcp"
|
2020-08-05 17:50:51 +00:00
|
|
|
volumes:
|
|
|
|
- "${DATA_PATH:-./data}:/data"
|
2020-08-05 20:57:33 +00:00
|
|
|
# SSL certs directory
|
|
|
|
- "${SSL_PATH:-./ssl}:/ssl:ro"
|
2022-03-25 01:07:30 +00:00
|
|
|
# Bridges
|
|
|
|
# Telegram
|
|
|
|
- "../mautrix-telegram/data:/bridges/mautrix-telegram/data:ro"
|
2020-08-05 17:50:51 +00:00
|
|
|
env_file: .env
|
2022-03-25 01:07:30 +00:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- matrix
|
2020-08-05 17:50:51 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
logging:
|
|
|
|
driver: "json-file"
|
|
|
|
options:
|
|
|
|
max-size: "${LOG_MAX_SIZE:-5m}"
|
|
|
|
max-file: "${LOG_MAX_FILE:-5}"
|
2022-03-25 01:07:30 +00:00
|
|
|
|
2024-03-10 22:34:51 +00:00
|
|
|
sliding-sync:
|
|
|
|
# https://github.com/matrix-org/sliding-sync
|
|
|
|
image: "ghcr.io/matrix-org/sliding-sync:${SS_PROXY_IMAGE_TAG:-latest}"
|
|
|
|
depends_on:
|
|
|
|
- synapse
|
|
|
|
extra_hosts:
|
|
|
|
- 'host.docker.internal:host-gateway'
|
|
|
|
ports:
|
|
|
|
- "${SS_EXT_ADR:-127.0.0.1}:${SS_EXT_PORT:-8889}:${SS_BIND_PORT:-8889}"
|
|
|
|
environment:
|
|
|
|
# https://github.com/matrix-org/sliding-sync?tab=readme-ov-file#setup
|
|
|
|
- "SYNCV3_SERVER=${SYNCV3_SERVER}"
|
|
|
|
- "SYNCV3_DB=${SYNCV3_DB}"
|
|
|
|
- "SYNCV3_SECRET=${SYNCV3_SECRET}"
|
|
|
|
- "SYNCV3_BINDADDR=${SS_BIND_ADDR:-0.0.0.0}:${SS_BIND_PORT:-8889}"
|
|
|
|
restart: unless-stopped
|
|
|
|
logging:
|
|
|
|
driver: "json-file"
|
|
|
|
options:
|
|
|
|
max-size: "${LOG_MAX_SIZE:-5m}"
|
|
|
|
max-file: "${LOG_MAX_FILE:-5}"
|
|
|
|
|
2022-03-25 01:07:30 +00:00
|
|
|
networks:
|
|
|
|
matrix:
|
|
|
|
external: true
|