container-server/matrix/docker-compose.yml

53 lines
1.4 KiB
YAML
Raw Normal View History

2019-11-10 23:46:12 +01:00
version: '3.7'
2019-11-19 23:17:02 +01:00
# https://github.com/matrix-org/synapse/tree/master/docs
2019-11-10 23:46:12 +01:00
# 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
2019-11-19 23:17:02 +01:00
# https://github.com/matrix-org/synapse/blob/master/debian/register_new_matrix_user.ronn
2019-11-10 23:46:12 +01:00
networks:
matrix:
services:
matrix:
image: matrixdotorg/synapse
container_name: matrix
2019-12-04 22:00:35 +01:00
restart: "${RESTART:-no}"
2019-12-05 22:37:25 +01:00
hostname: matrix
domainname: ${BASE_DOMAIN}
2019-11-10 23:46:12 +01:00
environment:
- SYNAPSE_CONFIG_DIR=/config
# - SYNAPSE_CONFIG_PATH=/etc/homeserver.yaml
- TZ=DE
- UID=0
- GID=0
# - DB_TYPE=postgres
# - DB_HOST=pg-matrix:5432
# - DB_NAME=matrix
# - DB_USER=${MATRIX_PG_USER:-matrix}
# - DB_PASSWD=${MATRIX_PG_PWD:-matrix}
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
2019-12-04 22:00:35 +01:00
restart: "${RESTART:-no}"
2019-11-10 23:46:12 +01:00
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