This commit is contained in:
myve 2024-08-10 09:07:11 +00:00
commit e650d80b1e
58 changed files with 1747 additions and 0 deletions

12
matrix/.env Normal file
View file

@ -0,0 +1,12 @@
# Environment file for docker-compose.yaml
# Generate new passwords with:
# openssl rand -hex 32
# Fill in registry
REGISTRY=
# Matrix
MATRIX_PORT=
MATRIX_DBNAME=
MATRIX_DBUSER=
MATRIX_DBPASS=

View file

@ -0,0 +1,33 @@
services:
# Matrix (https://github.com/element-hq/synapse)
# register_new_matrix_user -c homeserver.yaml http://localhost:8008
matrix:
image: ${REGISTRY}/synapse
container_name: matrix
restart: unless-stopped
ports:
- ${MATRIX_PORT:-8008}:8008
volumes:
- ./data:/data:rw
depends_on:
- matrix-postgresql
networks:
- matrix
matrix-postgresql:
image: ${REGISTRY}/postgres
container_name: matrix-postgresql
restart: unless-stopped
environment:
POSTGRES_DB: ${MATRIX_DBNAME:-synapse}
POSTGRES_USER: ${MATRIX_DBUSER:-synapse}
POSTGRES_PASSWORD: ${MATRIX_DBPASS:-synapse}
POSTGRES_INITDB_ARGS: --encoding=UTF8 --locale=C
volumes:
- ./sql:/var/lib/postgresql/data:rw
networks:
- matrix
networks:
matrix:
external: false