From f7487997f170b8e31a3ea7767227f467a4928191 Mon Sep 17 00:00:00 2001
From: Gareth Coles <gdude2002@gmail.com>
Date: Sun, 17 Mar 2024 02:29:41 +0900
Subject: [PATCH] container: add memory limits to example compose file

---
 docker-compose.example.yml | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/docker-compose.example.yml b/docker-compose.example.yml
index 6f57d4bd6f..aaad55a158 100644
--- a/docker-compose.example.yml
+++ b/docker-compose.example.yml
@@ -26,6 +26,10 @@ services:
       interval: 5s
       timeout: 5s
       retries: 5
+    deploy:
+      resources:
+        limits:
+          memory: 4096M
 
   redis:
     restart: unless-stopped
@@ -40,6 +44,11 @@ services:
       interval: 5s
       timeout: 5s
       retries: 5
+  #  deploy:
+  #    resources:
+  #      limits:
+  #        memory: 200M
+
 
   db:
     restart: unless-stopped
@@ -56,6 +65,10 @@ services:
       interval: 5s
       timeout: 5s
       retries: 5
+  #  deploy:
+  #    resources:
+  #      limits:
+  #        memory: 200M
 
 networks:
   calcnet: