Added Matrix #13

Closed
sudo-kraken wants to merge 6 commits from features/matrix-synapse into main
4 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,24 @@
[Unit]
Description=Matrix Synapse Quadlet
[Service]
Restart=always
TimeoutStartSec=900
[Install]
WantedBy=default.target
[Container]
Image=docker.io/matrixdotorg/synapse:latest
ContainerName=matrix_synapse
HostName=matrix_synapse
PublishPort=8008:8008
Volume=matrix-data:/data
Environment=VIRTUAL_HOST=matrix.example.com
Environment=VIRTUAL_PORT=8008
Environment=LETSENCRYPT_HOST=matrix.example.com
Environment=SYNAPSE_SERVER_NAME=matrix.example.com
Environment=SYNAPSE_REPORT_STATS=no

View file

@ -0,0 +1,2 @@
[Volume]
VolumeName=matrix-db-data

View file

@ -0,0 +1,27 @@
[Unit]
Description=Matrix Synapse DB Quadlet
WantedBy=matrix.service
[Service]
Restart=always
TimeoutStartSec=900
[Install]
WantedBy=default.target
[Container]
Image=docker.io/library/postgres:15
ContainerName=matrix_synapse_db
HostName=matrix_synapse_db
PublishPort=5432:5432
Volume=matrix-db-data:/var/lib/postgresql/data:z
Environment=POSTGRES_PASSWORD=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Environment=POSTGRES_USER=synapse_user
Environment=POSTGRES_DB=synapse
Environment=LANG=C
Environment=LC_COLLATE=C
Environment=LC_CTYPE=C
Environment=POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C

View file

@ -0,0 +1,2 @@
[Volume]
VolumeName=matrix-data