Better depends_on in docker compose file

This commit is contained in:
Ivan Folgueira Bande 2023-11-27 14:36:49 +01:00
parent dd0b5d2beb
commit b0dc598ffa
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7

View File

@ -76,6 +76,8 @@ services:
entrypoint: sh entrypoint: sh
command: command:
- /opt/run_nwaku_store_sqlite.sh - /opt/run_nwaku_store_sqlite.sh
depends_on:
- bootstrap
deploy: deploy:
resources: resources:
limits: limits:
@ -104,6 +106,7 @@ services:
- /opt/run_nwaku_store_postgres_ubuntu.sh - /opt/run_nwaku_store_postgres_ubuntu.sh
depends_on: depends_on:
- postgres - postgres
- bootstrap
deploy: deploy:
resources: resources:
limits: limits:
@ -128,7 +131,7 @@ services:
command: command:
- /opt/run_nwaku_store_postgres_ubuntu.sh - /opt/run_nwaku_store_postgres_ubuntu.sh
depends_on: depends_on:
- postgres - bootstrap
deploy: deploy:
mode: replicated mode: replicated
replicas: 10 replicas: 10
@ -166,6 +169,9 @@ services:
environment: environment:
STORE_QUERIES_PER_SECOND: 1 STORE_QUERIES_PER_SECOND: 1
NUM_CONCURRENT_USERS: 1 NUM_CONCURRENT_USERS: 1
depends_on:
- nwaku-postgres
- nwaku-sqlite
networks: networks:
- simulation - simulation
@ -179,6 +185,7 @@ services:
MSG_PER_SECOND: 10 MSG_PER_SECOND: 10
MSG_SIZE_KBYTES: 10 MSG_SIZE_KBYTES: 10
depends_on: depends_on:
- bootstrap
- nwaku-postgres - nwaku-postgres
- nwaku-sqlite - nwaku-sqlite
networks: networks: