From 2d263f81c8a59063350127d5c713985ae47c4a3c Mon Sep 17 00:00:00 2001 From: remoterami <142154971+remoterami@users.noreply.github.com> Date: Mon, 9 Dec 2024 14:51:11 +0100 Subject: [PATCH] added clickhouse http port --- backend/local_deployment/docker-compose.yml | 2 +- backend/local_deployment/main.star | 3 ++- backend/local_deployment/provision-explorer-config.sh | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/backend/local_deployment/docker-compose.yml b/backend/local_deployment/docker-compose.yml index 33cd1b8da..385464b0b 100644 --- a/backend/local_deployment/docker-compose.yml +++ b/backend/local_deployment/docker-compose.yml @@ -34,7 +34,7 @@ services: <<: *default-service command: go run ./cmd api -config /app/backend/local_deployment/config.yml frontend: - image: ghcr.io/gobitfly/beaconchain_frontend:main + image: ghcr.io/gobitfly/beaconchain_frontend:staging network_mode: "host" environment: - NUXT_PUBLIC_API_CLIENT="http://local.beaconcha.in:8080/api/i/" diff --git a/backend/local_deployment/main.star b/backend/local_deployment/main.star index 85a0a5e3b..187841175 100644 --- a/backend/local_deployment/main.star +++ b/backend/local_deployment/main.star @@ -9,6 +9,7 @@ POSTGRES_DB = "db" ALLOY_PORT_ID = "alloy" ALLOY_DB = "alloy" CLICKHOUSE_PORT_ID = "clickhouse" +CLICKHOUSE_PORT_ID_HTTP = "clickhouse-http" CLICKHOUSE_DB = "clickhouse" POSTGRES_USER = "postgres" POSTGRES_PASSWORD = "pass" @@ -42,7 +43,7 @@ def run(plan, args): image = "clickhouse/clickhouse-server:24.5", ports = { CLICKHOUSE_PORT_ID: PortSpec(9000, application_protocol = "clickhouse"), - "http": PortSpec(8123), + CLICKHOUSE_PORT_ID_HTTP: PortSpec(8123), }, env_vars = { "CLICKHOUSE_DB": CLICKHOUSE_DB, diff --git a/backend/local_deployment/provision-explorer-config.sh b/backend/local_deployment/provision-explorer-config.sh index c81dcccdf..183e0c400 100755 --- a/backend/local_deployment/provision-explorer-config.sh +++ b/backend/local_deployment/provision-explorer-config.sh @@ -14,6 +14,9 @@ echo "Alloy port is $ALLOY_PORT" CLICKHOUSE_PORT=$(kurtosis port print my-testnet clickhouse clickhouse --format number) echo "Clickhouse port is $CLICKHOUSE_PORT" +CLICKHOUSE_PORT_HTTP=$(kurtosis port print my-testnet clickhouse clickhouse-http --format number) +echo "Clickhouse http port is $CLICKHOUSE_PORT_HTTP" + LBT_PORT=$(kurtosis port print my-testnet littlebigtable littlebigtable --format number) echo "Little bigtable port is $LBT_PORT" @@ -23,6 +26,7 @@ EL_PORT=$EL_PORT REDIS_PORT=$REDIS_PORT ALLOY_PORT=$ALLOY_PORT CLICKHOUSE_PORT=$CLICKHOUSE_PORT +CLICKHOUSE_PORT_HTTP=$CLICKHOUSE_PORT_HTTP LBT_PORT=$LBT_PORT EOF