mirror of
https://github.com/StepanovPlaton/HomeServerServices.git
synced 2026-04-03 20:30:44 +04:00
Add matrix, cloud, gitea
This commit is contained in:
3
matrix/.env.example
Normal file
3
matrix/.env.example
Normal file
@@ -0,0 +1,3 @@
|
||||
MATRIX_DB=matrix
|
||||
MATRIX_DB_USER=user
|
||||
MATRIX_DB_PASSWORD=password
|
||||
5
matrix/create_config.sh
Normal file
5
matrix/create_config.sh
Normal 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
2
matrix/create_user.sh
Normal 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
38
matrix/docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user