From 36e5ccffbcb13cfd0948ef8316722504928105c2 Mon Sep 17 00:00:00 2001 From: Sheogorath Date: Sat, 8 May 2021 02:18:04 +0200 Subject: [PATCH] traefik: Increase memory limits for tor container Apparently 32mb are a bit too little for the DHT. In case a node has no swap configured, it'll never be able to sue the `memswap_limit`, resulting in the OOM death of the container on startup. This patch will fix this problem by doubling the low memory limit for the container. --- roles/traefik/templates/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/traefik/templates/docker-compose.yml b/roles/traefik/templates/docker-compose.yml index 7f7ecf2..95b22b2 100644 --- a/roles/traefik/templates/docker-compose.yml +++ b/roles/traefik/templates/docker-compose.yml @@ -40,8 +40,8 @@ services: {% if traefik_tor_enabled %} tor: image: quay.io/sheogorath/tor:{{ traefik_tor_version }} - mem_limit: 32mb - memswap_limit: 64mb + mem_limit: 64mb + memswap_limit: 128mb read_only: true depends_on: - proxy