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.
This commit is contained in:
Ivan Folgueira Bande 2023-10-23 19:34:19 +02:00 committed by Ivan FB
parent a3ea38b0eb
commit ca409b4966

View File

@ -51,6 +51,11 @@ services:
- '/opt/run_bootstrap.sh' - '/opt/run_bootstrap.sh'
volumes: volumes:
- ./run_bootstrap.sh:/opt/run_bootstrap.sh:Z - ./run_bootstrap.sh:/opt/run_bootstrap.sh:Z
deploy:
resources:
limits:
cpus: '1'
memory: 2048M
networks: networks:
- simulation - simulation
@ -69,6 +74,11 @@ services:
entrypoint: sh entrypoint: sh
command: command:
- /opt/run_nwaku_store_sqlite.sh - /opt/run_nwaku_store_sqlite.sh
deploy:
resources:
limits:
cpus: '1'
memory: 2048M
networks: networks:
- simulation - simulation
@ -90,6 +100,11 @@ services:
- /opt/run_nwaku_store_postgres_ubuntu.sh - /opt/run_nwaku_store_postgres_ubuntu.sh
depends_on: depends_on:
- postgres - postgres
deploy:
resources:
limits:
cpus: '1'
memory: 2048M
networks: networks:
- simulation - simulation
@ -177,6 +192,11 @@ services:
timeout: 60s timeout: 60s
retries: 5 retries: 5
start_period: 80s start_period: 80s
deploy:
resources:
limits:
cpus: '1'
memory: 2048M
networks: networks:
- simulation - simulation