Add matrix, cloud, gitea

This commit is contained in:
2026-01-14 10:33:07 -06:00
parent e340288d49
commit 9ca1667a31
24 changed files with 356 additions and 102 deletions

3
matrix/.env.example Normal file
View File

@@ -0,0 +1,3 @@
MATRIX_DB=matrix
MATRIX_DB_USER=user
MATRIX_DB_PASSWORD=password

5
matrix/create_config.sh Normal file
View File

@@ -0,0 +1,5 @@
docker run -it --rm \
-v "$(pwd)/synapse_data:/data" \
-e SYNAPSE_SERVER_NAME=example.com \
-e SYNAPSE_REPORT_STATS=yes \
matrixdotorg/synapse:latest generate

2
matrix/create_user.sh Normal file
View File

@@ -0,0 +1,2 @@
docker exec -it matrix-synapse-1 register_new_matrix_user \
-c /data/homeserver.yaml http://localhost:8008

38
matrix/docker-compose.yml Normal file
View File

@@ -0,0 +1,38 @@
services:
matrix-synapse:
image: docker.io/matrixdotorg/synapse:latest
container_name: matrix-synapse
restart: unless-stopped
volumes:
- ./data:/data
environment:
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
depends_on:
- matrix-db
networks:
- matrix_network
matrix-db:
image: docker.io/postgres:14-alpine
container_name: matrix-db
restart: unless-stopped
environment:
- POSTGRES_USER=${MATRIX_DB_USER:?}
- POSTGRES_PASSWORD=${MATRIX_DB_PASSWORD:?}
- POSTGRES_DB=${MATRIX_DB:?}
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
volumes:
- ./db:/var/lib/postgresql/data
networks:
- matrix_network
matrix-element:
image: vectorim/element-web:latest
container_name: matrix-element
restart: unless-stopped
networks:
- matrix_network
networks:
matrix_network:
driver: bridge