]> Untitled Git - lemmy.git/commitdiff
Limit memory usage for pictshare and iframely
authorFelix Ableitner <me@nutomic.com>
Fri, 5 Jun 2020 15:07:38 +0000 (17:07 +0200)
committerFelix Ableitner <me@nutomic.com>
Fri, 5 Jun 2020 15:07:38 +0000 (17:07 +0200)
docker/prod/docker-compose.yml

index 615423a54966df1c6a1e6f2eec8dab334312eff9..f66a59861bf35ee47dd753d323a425b1eafd4373 100644 (file)
@@ -1,4 +1,4 @@
-version: '3.3'
+version: '2.2'
 
 services:
   postgres:
@@ -32,6 +32,7 @@ services:
     volumes:
       - ./volumes/pictshare:/usr/share/nginx/html/data
     restart: always
+    mem_limit: 100m
 
   iframely:
     image: dogbin/iframely:latest
@@ -40,3 +41,4 @@ services:
     volumes:
       - ./iframely.config.local.js:/iframely/config.local.js:ro
     restart: always
+    mem_limit: 100m