mirror of
https://github.com/aykhans/my-self-host-services.git
synced 2026-10-12 19:28:49 +00:00
matrix: add Synapse + Postgres compose with resource limits
This commit is contained in:
1 parent
d24df73aad
commit
dc27676d0f
1 file changed
+10
@@ -27,6 +27,11 @@ services:
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "1.0"
|
||||
memory: 1G
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
@@ -51,6 +56,11 @@ services:
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.5"
|
||||
memory: 400M
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
|
||||
Reference in new issue
Block a user