Integrate ipld-eth-beacon-indexer working with the fixturenet. (#36)

* Use explicit image hash, not latest tag.

* Better syntax

* No latest

* Add fixturenet setup for beacon indexer.

* Don't wait for merge.

* Don't wait for merge.
This commit is contained in:
telackey authored and GitHub committed 2022-11-03 17:31:14 -05:00
1 parent 5edfe5c0b8
commit 863548530a
7 files changed
+89 -39

No files matched your search

+32 -4
View File
@@ -14,6 +14,12 @@ services:
env_file:
- ../config/fixturenet-eth/fixturenet-eth.env
image: cerc/fixturenet-eth-geth:local
healthcheck:
test: ["CMD", "nc", "-v", "localhost", "8545"]
interval: 30s
timeout: 10s
retries: 10
start_period: 3s
depends_on:
- fixturenet-eth-bootnode-geth
ports:
@@ -24,6 +30,12 @@ services:
environment:
CERC_RUN_STATEDIFF: "true"
CERC_STATEDIFF_DB_NODE_ID: 2
healthcheck:
test: ["CMD", "nc", "-v", "localhost", "8545"]
interval: 30s
timeout: 10s
retries: 10
start_period: 3s
env_file:
- ../config/fixturenet-eth/fixturenet-eth.env
image: cerc/fixturenet-eth-geth:local
@@ -39,6 +51,12 @@ services:
fixturenet-eth-lighthouse-1:
hostname: fixturenet-eth-lighthouse-1
healthcheck:
test: ["CMD", "wget", "--tries=1", "--connect-timeout=1", "--quiet", "-O", "-", "http://localhost:8001/eth/v2/beacon/blocks/head"]
interval: 30s
timeout: 10s
retries: 10
start_period: 30s
env_file:
- ../config/fixturenet-eth/fixturenet-eth.env
environment:
@@ -47,13 +65,21 @@ services:
EXECUTION_ENDPOINT: "http://fixturenet-eth-geth-1:8551"
image: cerc/fixturenet-eth-lighthouse:local
depends_on:
- fixturenet-eth-bootnode-lighthouse
- fixturenet-eth-geth-1
fixturenet-eth-bootnode-lighthouse:
condition: service_started
fixturenet-eth-geth-1:
condition: service_healthy
ports:
- "8001"
fixturenet-eth-lighthouse-2:
hostname: fixturenet-eth-lighthouse-2
healthcheck:
test: ["CMD", "wget", "--tries=1", "--connect-timeout=1", "--quiet", "-O", "-", "http://localhost:8001/eth/v2/beacon/blocks/head"]
interval: 30s
timeout: 10s
retries: 10
start_period: 30s
env_file:
- ../config/fixturenet-eth/fixturenet-eth.env
environment:
@@ -63,5 +89,7 @@ services:
LIGHTHOUSE_GENESIS_STATE_URL: "http://fixturenet-eth-lighthouse-1:8001/eth/v2/debug/beacon/states/0"
image: cerc/fixturenet-eth-lighthouse:local
depends_on:
- fixturenet-eth-bootnode-lighthouse
- fixturenet-eth-geth-2
fixturenet-eth-bootnode-lighthouse:
condition: service_started
fixturenet-eth-geth-2:
condition: service_healthy
@@ -7,11 +7,11 @@ services:
POSTGRES_USER: vdbm
POSTGRES_DB: cerc_testing
POSTGRES_PASSWORD: password
volumes:
- vdb_db_eth-beacon_db:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "nc", "-v", "localhost", "5432"]
interval: 30s
timeout: 10s
retries: 10
start_period: 3s
ports:
- "127.0.0.1:8076:5432"
command: ["postgres", "-c", "log_statement=all"]
volumes:
vdb_db_eth-beacon_db:
@@ -3,12 +3,10 @@ services:
ipld-eth-beacon-indexer:
restart: unless-stopped
depends_on:
- ipld-eth-beacon-db
- lighthouse
ipld-eth-beacon-db:
condition: service_healthy
fixturenet-eth-lighthouse-1:
condition: service_healthy
image: cerc/ipld-eth-beacon-indexer:local
volumes:
- type: bind
source: ${eth_beacon_config_file}
target: /root/ipld-eth-beacon-config.json
environment:
CAPTURE_MODE: ${eth_beacon_capture_mode}
env_file:
- ../config/ipld-eth-beacon-indexer/indexer.env
-17
View File
@@ -1,17 +0,0 @@
version: "3.2"
services:
lighthouse:
restart: always
image: cerc/lighthouse:local
environment:
- NETWORK=mainnet
volumes:
- lighthouse_db:/root/.lighthouse
ports:
- 127.0.0.1:5052:5052
- 9000:9000/udp
- 9000:9000/tcp
command: ["tail", "-f", "/dev/null"]
volumes:
lighthouse_db: