Added Matrix #20
4 changed files with 55 additions and 0 deletions
24
quadlets/matrix/matrix-db.container
Normal file
24
quadlets/matrix/matrix-db.container
Normal 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
|
2
quadlets/matrix/matrix-db.volume
Normal file
2
quadlets/matrix/matrix-db.volume
Normal file
|
@ -0,0 +1,2 @@
|
|||
[Volume]
|
||||
VolumeName=matrix-db-data
|
27
quadlets/matrix/matrix.container
Normal file
27
quadlets/matrix/matrix.container
Normal 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
|
2
quadlets/matrix/matrix.volume
Normal file
2
quadlets/matrix/matrix.volume
Normal file
|
@ -0,0 +1,2 @@
|
|||
[Volume]
|
||||
VolumeName=matrix-data
|
Loading…
Add table
Reference in a new issue