2019-11-10 23:46:12 +01:00
|
|
|
version: '3.7'
|
|
|
|
|
2024-01-03 17:03:24 +01:00
|
|
|
# https://github.com/element-hq/synapse/pkgs/container/synapse
|
|
|
|
# https://github.com/element-hq/synapse/tree/master/docs
|
|
|
|
# https://github.com/element-hq/synapse/tree/master/contrib/docker
|
|
|
|
# https://github.com/element-hq/synapse/blob/master/docs/reverse_proxy.md
|
|
|
|
# https://github.com/element-hq/synapse/blob/master/docs/federate.md
|
|
|
|
# https://github.com/element-hq/synapse/blob/master/docs/postgres.md
|
|
|
|
# https://github.com/element-hq/synapse/blob/master/debian/register_new_matrix_user.ronn
|
2019-11-10 23:46:12 +01:00
|
|
|
|
|
|
|
networks:
|
|
|
|
matrix:
|
|
|
|
|
|
|
|
services:
|
|
|
|
matrix:
|
2024-10-18 20:12:42 +02:00
|
|
|
image: ghcr.io/element-hq/synapse:v1.117.0
|
2019-11-10 23:46:12 +01:00
|
|
|
container_name: matrix
|
2019-12-04 22:00:35 +01:00
|
|
|
restart: "${RESTART:-no}"
|
2019-12-05 22:37:25 +01:00
|
|
|
domainname: ${BASE_DOMAIN}
|
2019-11-10 23:46:12 +01:00
|
|
|
environment:
|
|
|
|
- SYNAPSE_CONFIG_DIR=/config
|
|
|
|
- TZ=DE
|
|
|
|
- UID=0
|
|
|
|
- GID=0
|
|
|
|
volumes:
|
|
|
|
- ./matrix/config:/config:ro
|
2019-12-25 15:48:01 +01:00
|
|
|
- ${BASE_DIR:-/srv}/matrix/data:/data
|
2019-11-10 23:46:12 +01:00
|
|
|
depends_on:
|
|
|
|
- pg-matrix
|
|
|
|
networks:
|
|
|
|
- proxy
|
|
|
|
- matrix
|
|
|
|
|
|
|
|
pg-matrix:
|
2024-10-25 23:54:36 +02:00
|
|
|
image: postgres:17-alpine
|
2019-11-10 23:46:12 +01:00
|
|
|
container_name: pg-matrix
|
2019-12-04 22:00:35 +01:00
|
|
|
restart: "${RESTART:-no}"
|
2019-11-10 23:46:12 +01:00
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=matrix
|
2023-09-13 22:33:47 +02:00
|
|
|
- POSTGRES_USER=matrix
|
2019-11-10 23:46:12 +01:00
|
|
|
- POSTGRES_PASSWORD=${MATRIX_PG_PWD:-matrix}
|
2023-09-13 22:33:47 +02:00
|
|
|
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
2019-11-10 23:46:12 +01:00
|
|
|
volumes:
|
2019-12-25 15:48:01 +01:00
|
|
|
- ${BASE_DIR:-/srv}/matrix/psql:/var/lib/postgresql/data
|
2019-11-10 23:46:12 +01:00
|
|
|
networks:
|
|
|
|
- matrix
|