From 514d9f409492d17df2ad6b83976026c9695ac95b Mon Sep 17 00:00:00 2001 From: Nicky Gerritsen Date: Wed, 9 Oct 2024 19:37:52 +0200 Subject: [PATCH] Use host cgroup in Docker Compose to make cgroupv2 work for hosts without cgroupv1 fallback. --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 181596b96c..502182ad1c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -30,6 +30,9 @@ services: ports: - 12345:80 privileged: true + # Note that this requires Docker Compose > 2.15. + # If you have an older version upgrade it, or you can comment out this line + cgroup: host working_dir: ${PWD} environment: - PROJECT_DIR=${PWD}