From 3fce3cc57dbfe4ddd1cedbb12a00b8cfbc698bd5 Mon Sep 17 00:00:00 2001 From: CJ Yetman Date: Mon, 22 Jul 2024 15:47:47 +0200 Subject: [PATCH] reserve appropriate amount of RAM in docker-compose.yml Use the docker-compose file to specify a minimum amount of RAM needed to run the process to avoid problems stemming from attempting to run the process with an externally fixed amount of RAM below what is needed https://docs.docker.com/compose/compose-file/deploy/#memory --- docker-compose.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index c55c4d1..ff63bb9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,3 +25,7 @@ services: - type: bind source: ${HOST_OUTPUTS_PATH} target: /mnt/outputs + deploy: + resources: + reservations: + memory: 14gb