Skip to content

Commit

Permalink
chore: remove hard deps between nodes (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
Freyskeyd committed Mar 12, 2024
1 parent b45c6b2 commit ed7b724
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions subnet-topos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ services:
set -e
./topos node status --node http://localhost:1340
/data/polygon-edge status | grep 'Current Block Number (base 10) = .[0-9]*'
interval: 10s
interval: 5s
start_period: 1s
retries: 10
depends_on:
topos-init:
condition: service_completed_successfully
topos-node-1:
condition: service_healthy
condition: service_started
volumes:
- topos-data:/data
- ./node_config/node/topos-node-2/config.toml:/data/node/node-2/config.toml:ro
Expand Down Expand Up @@ -158,14 +158,14 @@ services:
set -e
./topos node status --node http://localhost:1340
/data/polygon-edge status | grep 'Current Block Number (base 10) = .[0-9]*'
interval: 10s
interval: 5s
start_period: 1s
retries: 10
depends_on:
topos-init:
condition: service_completed_successfully
topos-node-1:
condition: service_healthy
condition: service_started
volumes:
- topos-data:/data
- ./node_config/node/topos-node-3/config.toml:/data/node/node-3/config.toml:ro
Expand Down Expand Up @@ -198,14 +198,14 @@ services:
set -e
./topos node status --node http://localhost:1340
/bin/sh /polygon_edge_healthcheck.sh /data
interval: 10s
interval: 5s
start_period: 1s
retries: 10
depends_on:
topos-init:
condition: service_completed_successfully
topos-node-1:
condition: service_healthy
condition: service_started
volumes:
- topos-data:/data
- ./node_config/node/topos-node-4/config.toml:/data/node/node-4/config.toml:ro
Expand All @@ -232,13 +232,14 @@ services:
- ./node_config/node/sequencer-topos/config.toml:/data/node/sequencer-topos/config.toml
depends_on:
topos-node-4:
condition: service_healthy
condition: service_started
contracts-topos:
condition: service_completed_successfully
entrypoint: "bash -c"
command: /tmp/init.sh
healthcheck:
test: ["CMD-SHELL", "test $(netstat -ntu | grep ':8545' | wc -l) -gt 0"]
start_period: 15s
interval: 1s
retries: 10
environment:
Expand Down

0 comments on commit ed7b724

Please sign in to comment.