45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
version: '3.7'
|
|
|
|
# https://github.com/matrix-org/synapse/tree/master/docs
|
|
# https://github.com/matrix-org/synapse/tree/master/contrib/docker
|
|
# https://github.com/matrix-org/synapse/blob/master/docs/reverse_proxy.md
|
|
# https://github.com/matrix-org/synapse/blob/master/docs/federate.md
|
|
# https://github.com/matrix-org/synapse/blob/master/docs/postgres.md
|
|
# https://github.com/matrix-org/synapse/blob/master/debian/register_new_matrix_user.ronn
|
|
|
|
networks:
|
|
matrix:
|
|
|
|
services:
|
|
matrix:
|
|
image: matrixdotorg/synapse
|
|
container_name: matrix
|
|
restart: "${RESTART:-no}"
|
|
hostname: matrix
|
|
domainname: ${BASE_DOMAIN}
|
|
environment:
|
|
- SYNAPSE_CONFIG_DIR=/config
|
|
- TZ=DE
|
|
- UID=0
|
|
- GID=0
|
|
volumes:
|
|
- ./matrix/config:/config:ro
|
|
- /srv/matrix/data:/data
|
|
depends_on:
|
|
- pg-matrix
|
|
networks:
|
|
- proxy
|
|
- matrix
|
|
|
|
pg-matrix:
|
|
image: postgres:12-alpine
|
|
container_name: pg-matrix
|
|
restart: "${RESTART:-no}"
|
|
environment:
|
|
- POSTGRES_DB=matrix
|
|
- POSTGRES_USER=${MATRIX_PG_USER:-matrix}
|
|
- POSTGRES_PASSWORD=${MATRIX_PG_PWD:-matrix}
|
|
volumes:
|
|
- /srv/matrix/psql:/var/lib/postgresql/data
|
|
networks:
|
|
- matrix
|