From 7a39ad4b9df9674397c40e62dc5d5682542e9d41 Mon Sep 17 00:00:00 2001
From: Pattarapon Theanthong
Date: Wed, 13 Dec 2023 16:27:40 +0700
Subject: [PATCH] [chore][SRE-362]: setup resource limit
---
.deployment/docker-compose.yaml | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/.deployment/docker-compose.yaml b/.deployment/docker-compose.yaml
index 29934dde1..60f3d90f0 100644
--- a/.deployment/docker-compose.yaml
+++ b/.deployment/docker-compose.yaml
@@ -22,16 +22,16 @@ services:
- ome_edge:/opt/ovenmediaengine/bin/edge_conf
- ome_logs:/var/log/ovenmediaengine
ports:
- - "9999:9999/udp"
- "3478:3478"
- - "10000-10009:10000-10009/udp"
- "1935:1935" # RTMP
- - "4000-4999:4000-4999/udp" # WebRTC, MPEG-TS, SRT
- - "4000-4999:4000-4999/tcp" # WebRTC, MPEG-TS, SRT
- - "8081:8081"
- "8080:8080" # HTTP
- - "39000:9000" # HTTPS
+ #- "39000:9000" # HTTPS
+ - "8081:8081"
- "3333:3333" # OVT
+ #- "9999:9999/udp"
+ #- "10000-10009:10000-10009/udp"
+ # - "4000-4999:4000-4999/udp" # WebRTC, MPEG-TS, SRT
+ # - "4000-4999:4000-4999/tcp" # WebRTC, MPEG-TS, SRT
env_file:
- ./.env.compose
restart: unless-stopped
@@ -40,9 +40,9 @@ services:
deploy:
resources:
reservations:
- cpus: '2'
+ cpus: '1.5'
memory: 2048M
limits:
- cpus: '2.5'
+ cpus: '2'
memory: 3072M