Остання активність 1705433070

synapse.yaml

Версія e8300a46f5319d6ca302d0c70ebcc4482b3d2b9d

synapse.yaml Неформатований
1apiVersion: v1
2kind: ConfigMap
3metadata:
4 name: matrix-config
5data:
6 POSTGRES_USER: postgres_user
7 POSTGRES_DB: postgres_synapse_database
8 POSTGRES_PASSWORD: postgres_password
9 POSTGRES_INITDB_ARGS: --encoding=UTF-8 --lc-collate=C --lc-ctype=C
10 ## Sliding Sync Proxy, will need a separate database created manually in the container.
11 ## podman exec -it matrix-db psql -U synapse -c 'CREATE DATABASE syncv3 WITH OWNER synapse'
12 ## Replace 'postgres_user', 'postgres_password' and 'syncv3' with the correct values
13 #SYNCV3_BINDADDR: "0.0.0.0:8118"
14 #SYNCV3_DB: "user=postgres_user dbname=syncv3 sslmode=disable host=127.0.0.1 password='postgres_password'"
15 #SYNCV3_SERVER: "https://example.com" ## Replace with the domain of the HS
16 #SYNCV3_SECRET: ## Generate secret with `openssl rand -hex 32` and paste here
17
18---
19apiVersion: v1
20kind: Pod
21metadata:
22 annotations:
23 creationTimestamp: "2022-09-29T06:34:53Z"
24 labels:
25 app: matrix
26 name: matrix
27spec:
28 volumes:
29 - name: matrix-psql-pvc
30 persistentVolumeClaim:
31 claimName: matrix-psql
32 - hostPath:
33 path: /path/to/matrix/synapse
34 type: Directory
35 name: data-matrix-synapse-host-0
36
37 ## Bridges
38 #- hostPath:
39 # path: /path/to/matrix/mautrix-discord
40 # type: Directory
41 # name: data-matrix-mautrix-discord-host-0
42
43 #- hostPath:
44 # path: /path/to/matrix/mautrix-whatsapp
45 # type: Directory
46 # name: data-matrix-mautrix-whatsapp-host-0
47
48 #- hostPath:
49 # path: /path/to/matrix/mautrix-gmessages
50 # type: Directory
51 # name: data-matrix-mautrix-gmessages-host-0
52
53 containers:
54 - image: ghcr.io/matrix-org/synapse:latest
55 name: synapse
56 ports:
57 - containerPort: 8008
58 hostPort: 8008
59 - containerPort: 8118
60 hostPort: 8118
61 - containerPort: 9000
62 hostPort: 9001
63 resources: {}
64 securityContext:
65 capabilities:
66 drop:
67 - CAP_MKNOD
68 - CAP_AUDIT_WRITE
69 volumeMounts:
70 - mountPath: /data
71 name: data-matrix-synapse-host-0
72 - image: docker.io/library/postgres:14-alpine
73 args:
74 - postgres
75 envFrom:
76 - configMapRef:
77 name: matrix-config
78 optional: false
79 name: db
80 resources: {}
81 securityContext:
82 capabilities:
83 drop:
84 - CAP_MKNOD
85 - CAP_AUDIT_WRITE
86 volumeMounts:
87 - mountPath: /var/lib/postgresql/data
88 name: matrix-psql-pvc
89
90 ## Sliding sync, get synapse running first
91 #- image: ghcr.io/matrix-org/sliding-sync:latest
92 # name: syncv3
93 # envFrom:
94 # - configMapRef:
95 # name: matrix-config
96 # optional: false
97 # resources: {}
98
99 ## Bridges
100 #- image: dock.mau.dev/mautrix/discord:latest
101 # imagePullPolicy: never
102 # name: discord
103 # resources: {}
104 # securityContext:
105 # capabilities:
106 # drop:
107 # - CAP_MKNOD
108 # - CAP_AUDIT_WRITE
109 # volumeMounts:
110 # - mountPath: /data
111 # name: data-matrix-mautrix-discord-host-0
112
113 #- image: dock.mau.dev/mautrix/whatsapp:latest
114 # name: whatsapp
115 # resources: {}
116 # securityContext:
117 # capabilities:
118 # drop:
119 # - CAP_MKNOD
120 # - CAP_AUDIT_WRITE
121 # volumeMounts:
122 # - mountPath: /data
123 # name: data-matrix-mautrix-whatsapp-host-0
124
125 #- image: dock.mau.dev/mautrix/gmessages:latest
126 # name: gmessages
127 # resources: {}
128 # securityContext:
129 # capabilities:
130 # drop:
131 # - CAP_MKNOD
132 # - CAP_AUDIT_WRITE
133 # volumeMounts:
134 # - mountPath: /data
135 # name: data-matrix-mautrix-gmessages-host-0
136 restartPolicy: On-failure
137status: {}