From ca409b49667993cb347e731b68a2a8dda87c30af Mon Sep 17 00:00:00 2001 From: Ivan Folgueira Bande Date: Mon, 23 Oct 2023 19:34:19 +0200 Subject: [PATCH] docker-compose-manual-binaries: limit for more realistic container The CPU and memory limits are set as per the dimension of the machine used in wakuv2.prod. --- docker/docker-compose-manual-binaries.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docker/docker-compose-manual-binaries.yml b/docker/docker-compose-manual-binaries.yml index c6b1b86..baa0801 100644 --- a/docker/docker-compose-manual-binaries.yml +++ b/docker/docker-compose-manual-binaries.yml @@ -51,6 +51,11 @@ services: - '/opt/run_bootstrap.sh' volumes: - ./run_bootstrap.sh:/opt/run_bootstrap.sh:Z + deploy: + resources: + limits: + cpus: '1' + memory: 2048M networks: - simulation @@ -69,6 +74,11 @@ services: entrypoint: sh command: - /opt/run_nwaku_store_sqlite.sh + deploy: + resources: + limits: + cpus: '1' + memory: 2048M networks: - simulation @@ -90,6 +100,11 @@ services: - /opt/run_nwaku_store_postgres_ubuntu.sh depends_on: - postgres + deploy: + resources: + limits: + cpus: '1' + memory: 2048M networks: - simulation @@ -177,6 +192,11 @@ services: timeout: 60s retries: 5 start_period: 80s + deploy: + resources: + limits: + cpus: '1' + memory: 2048M networks: - simulation