Feat: updated config to use nginx instead of nginx proxy manager

This commit is contained in:
CoolnsX
2025-08-20 23:55:52 +05:30
parent ce1c255957
commit 79a00d6fe0
7 changed files with 16 additions and 17 deletions

View File

@@ -1,17 +1,15 @@
[Unit] [Unit]
Description=Collabora Container Description=Collabora Container
Requires=nginx-proxy.service
After=nginx-proxy.service
[Container] [Container]
Pod=nginx-proxy.pod Network=host
ContainerName=collabora ContainerName=collabora
Image=docker.io/collabora/code:latest Image=docker.io/collabora/code:latest
# Enable auto-update container # Enable auto-update container
AutoUpdate=registry AutoUpdate=registry
# pass this to attach it to container # pass this to attach it to container
Environment=extra_params="--o:ssl.enable=false --o:ssl.termination=true --o:net.post_allow.host[0]=160.202.39.[0-9]{1,3} --o:net.post_allow_host[1]=100.64.0.[0-9]{1,3} --o:per_document.max_concurrency=12 --o:num_prespawn_children=12 --o:net.frame_ancestors=${CLOUD}" Environment=extra_params="--o:remote_font_config.url=${CLOUD}/apps/richdocuments/settings/fonts.json --o:ssl.enable=false --o:ssl.termination=true --o:net.post_allow.host[0]=160.202.39.[0-9]{1,3} --o:net.post_allow_host[1]=100.64.0.[0-9]{1,3} --o:per_document.max_concurrency=12 --o:num_prespawn_children=12"
Environment=aliasgroup1=${CLOUD}:443 Environment=aliasgroup1=${CLOUD}:443
Environment=domain1=${CLOUD}:443 Environment=domain1=${CLOUD}:443
Environment=DONT_GEN_SSL_CERT=true Environment=DONT_GEN_SSL_CERT=true

View File

@@ -12,7 +12,6 @@ Environment=DISABLE_REGISTRATION=true
Environment=USER_UID=1000 Environment=USER_UID=1000
Environment=USER_GID=1000 Environment=USER_GID=1000
PublishPort=3001:3000
PublishPort=2222:22 PublishPort=2222:22
UIDMap=1000:0:1 UIDMap=1000:0:1
@@ -22,6 +21,7 @@ UIDMap=0:1:1000
AddCapability=CAP_NET_BIND_SERVICE AddCapability=CAP_NET_BIND_SERVICE
Volume=%h/podman/gitea:/data Volume=%h/podman/gitea:/data
Volume=%h/podman/gitea/.socket:/tmp/gitea/
Volume=/etc/timezone:/etc/timezone:ro Volume=/etc/timezone:/etc/timezone:ro
Volume=/etc/localtime:/etc/localtime:ro Volume=/etc/localtime:/etc/localtime:ro

View File

@@ -1,10 +1,8 @@
[Unit] [Unit]
Description=Headscale Container Description=Headscale Container
Requires=nginx-proxy.service
After=nginx-proxy.service
[Container] [Container]
Pod=nginx-proxy.pod Network=host
ContainerName=headscale ContainerName=headscale
Image=docker.io/headscale/headscale:latest Image=docker.io/headscale/headscale:latest
Exec=serve Exec=serve

7
matrix/matrix.pod Normal file
View File

@@ -0,0 +1,7 @@
[Unit]
Description=Matrix Pod
[Pod]
PodName=matrix
Volume=%h/podman/matrix/.socket:/tmp/matrix
#Network=host

View File

@@ -1,10 +1,10 @@
[Unit] [Unit]
Description=Synapse Container Description=Synapse Container
Requires=nginx-proxy.service synapse_db.service Requires=synapse_db.service
After=nginx-proxy.service synapse_db.service After=synapse_db.service
[Container] [Container]
Pod=nginx-proxy.pod Pod=matrix.pod
ContainerName=synapse ContainerName=synapse
Image=docker.io/matrixdotorg/synapse:latest Image=docker.io/matrixdotorg/synapse:latest
@@ -23,7 +23,6 @@ Environment=GID=0
Environment=TZ=${TZ} Environment=TZ=${TZ}
Volume=%h/podman/matrix/synapse:/data Volume=%h/podman/matrix/synapse:/data
Volume=%h/podman/matrix/.socket:/tmp/matrix
[Service] [Service]
# pass this to autofill above variables # pass this to autofill above variables

View File

@@ -2,7 +2,7 @@
Description=Synapse Database Container Description=Synapse Database Container
[Container] [Container]
Pod=nginx-proxy.pod Pod=matrix.pod
ContainerName=synapse_db ContainerName=synapse_db
Image=docker.io/library/postgres:alpine 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 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 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/database:/var/lib/postgresql/data
Volume=%h/podman/matrix/.socket:/tmp/matrix
[Service] [Service]
# pass this to autofill above variables # pass this to autofill above variables

View File

@@ -1,10 +1,8 @@
[Unit] [Unit]
Description=Ntfy Container Description=Ntfy Container
Requires=nginx-proxy.service
After=nginx-proxy.service
[Container] [Container]
Pod=nginx-proxy.pod Network=host
ContainerName=ntfy ContainerName=ntfy
Image=docker.io/binwiederhier/ntfy:latest Image=docker.io/binwiederhier/ntfy:latest
Exec=serve Exec=serve