From 48c27aa64291db11e695c87edcc15f601db47c63 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Thu, 3 Nov 2022 16:10:49 -0500 Subject: [PATCH] Don't wait for merge. --- compose/docker-compose-ipld-eth-beacon-db.yml | 17 ++++++++++ ...docker-compose-ipld-eth-beacon-indexer.yml | 12 +++++++ config/ipld-eth-beacon-indexer/indexer.env | 31 +++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 compose/docker-compose-ipld-eth-beacon-db.yml create mode 100644 compose/docker-compose-ipld-eth-beacon-indexer.yml create mode 100644 config/ipld-eth-beacon-indexer/indexer.env diff --git a/compose/docker-compose-ipld-eth-beacon-db.yml b/compose/docker-compose-ipld-eth-beacon-db.yml new file mode 100644 index 00000000..bb54cd1f --- /dev/null +++ b/compose/docker-compose-ipld-eth-beacon-db.yml @@ -0,0 +1,17 @@ +version: "3.2" +services: + ipld-eth-beacon-db: + restart: always + image: cerc/ipld-eth-beacon-db:local + environment: + POSTGRES_USER: vdbm + POSTGRES_DB: cerc_testing + POSTGRES_PASSWORD: password + healthcheck: + test: ["CMD", "nc", "-v", "localhost", "5432"] + interval: 30s + timeout: 10s + retries: 10 + start_period: 3s + ports: + - "127.0.0.1:8076:5432" diff --git a/compose/docker-compose-ipld-eth-beacon-indexer.yml b/compose/docker-compose-ipld-eth-beacon-indexer.yml new file mode 100644 index 00000000..533edf3c --- /dev/null +++ b/compose/docker-compose-ipld-eth-beacon-indexer.yml @@ -0,0 +1,12 @@ +version: "3.2" +services: + ipld-eth-beacon-indexer: + restart: unless-stopped + depends_on: + ipld-eth-beacon-db: + condition: service_healthy + fixturenet-eth-lighthouse-1: + condition: service_healthy + image: cerc/ipld-eth-beacon-indexer:local + env_file: + - ../config/ipld-eth-beacon-indexer/indexer.env diff --git a/config/ipld-eth-beacon-indexer/indexer.env b/config/ipld-eth-beacon-indexer/indexer.env new file mode 100644 index 00000000..b19800aa --- /dev/null +++ b/config/ipld-eth-beacon-indexer/indexer.env @@ -0,0 +1,31 @@ +# Match compose/docker-compose-ipld-eth-beacon-db.yml +POSTGRES_HOST=ipld-eth-beacon-db +POSTGRES_PORT=5432 +POSTGRES_DB=cerc_testing +POSTGRES_USER=vdbm +POSTGRES_PASSWORD=password + +# Match compose/docker-compose-fixturenet-eth.yml +LIGHTHOUSE_HOST=fixturenet-eth-lighthouse-1 +LIGHTHOUSE_PORT=8001 +LIGHTHOUSE_PROTOCOL=http + +CAPTURE_MODE=head +LOG_LEVEL=debug + +BC_MAX_HISTORIC_PROCESS_WORKER=2 +BC_UNIQUE_NODE_IDENTIFIER=1001 +BC_CHECK_DB=true +BC_BEACON_STATE_PROCESSING_ENABLED=false +BC_BEACON_BLOCK_PROCESSING_ENABLED=true +BC_MINIMUM_SLOT=0 + +KG_INCREMENT=10000 +KG_PROCESS_KNOWN_GAPS_ENABLED=true +KG_MAX_KNOWN_GAPS_WORKER=2 +KG_MINIMUM_SLOT=0 + +# Match compose/docker-compose-prometheus-grafana.yml +PROM_HOST=prometheus +PROM_PORT=9000 +PROM_METRICS_ENABLED=false