mirror of
https://github.com/CoolnsX/selfhost_podman.git
synced 2025-12-20 03:45:16 +05:30
Feat: updated config to use nginx instead of nginx proxy manager
This commit is contained in:
7
matrix/matrix.pod
Normal file
7
matrix/matrix.pod
Normal file
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Matrix Pod
|
||||
|
||||
[Pod]
|
||||
PodName=matrix
|
||||
Volume=%h/podman/matrix/.socket:/tmp/matrix
|
||||
#Network=host
|
||||
@@ -1,10 +1,10 @@
|
||||
[Unit]
|
||||
Description=Synapse Container
|
||||
Requires=nginx-proxy.service synapse_db.service
|
||||
After=nginx-proxy.service synapse_db.service
|
||||
Requires=synapse_db.service
|
||||
After=synapse_db.service
|
||||
|
||||
[Container]
|
||||
Pod=nginx-proxy.pod
|
||||
Pod=matrix.pod
|
||||
ContainerName=synapse
|
||||
Image=docker.io/matrixdotorg/synapse:latest
|
||||
|
||||
@@ -23,7 +23,6 @@ Environment=GID=0
|
||||
Environment=TZ=${TZ}
|
||||
|
||||
Volume=%h/podman/matrix/synapse:/data
|
||||
Volume=%h/podman/matrix/.socket:/tmp/matrix
|
||||
|
||||
[Service]
|
||||
# pass this to autofill above variables
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Description=Synapse Database Container
|
||||
|
||||
[Container]
|
||||
Pod=nginx-proxy.pod
|
||||
Pod=matrix.pod
|
||||
ContainerName=synapse_db
|
||||
Image=docker.io/library/postgres:alpine
|
||||
Exec=postgres -c unix_socket_directories='/var/run/postgresql/,/tmp/matrix/' -c unix_socket_permissions=0770 -c shared_buffers=2GB -c work_mem=64MB -c effective_cache_size=4GB
|
||||
@@ -15,7 +15,6 @@ Environment=POSTGRES_USER=${POSTGRES_USER}
|
||||
Environment=POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
|
||||
|
||||
Volume=%h/podman/matrix/database:/var/lib/postgresql/data
|
||||
Volume=%h/podman/matrix/.socket:/tmp/matrix
|
||||
|
||||
[Service]
|
||||
# pass this to autofill above variables
|
||||
|
||||
Reference in New Issue
Block a user