From 7f0a07f7a40a3a43fdd5ba07febc5e4c6fc49641 Mon Sep 17 00:00:00 2001 From: Raid Ateir Date: Wed, 29 Jan 2025 23:55:48 +0400 Subject: [PATCH] (test): comment out chains other than main --- zk-chains-docker-compose.yml | 313 ++++++++++++++++++----------------- 1 file changed, 157 insertions(+), 156 deletions(-) diff --git a/zk-chains-docker-compose.yml b/zk-chains-docker-compose.yml index 8b17d40..d7a1b1a 100644 --- a/zk-chains-docker-compose.yml +++ b/zk-chains-docker-compose.yml @@ -38,6 +38,7 @@ services: - RUST_LOG=warn ports: - 127.0.0.1:15045:8545 + - 8545:8545 # Make it accessible inside the network postgres: image: "postgres:14" @@ -92,76 +93,76 @@ services: - zksync_custombase: - stdin_open: true - tty: true - image: matterlabs/local-node:hyperlocal - depends_on: - reth: - condition: service_started - postgres: - condition: service_started - zksync: - condition: service_healthy - healthcheck: - test: curl --fail http://localhost:3071/health || exit 1 - interval: 10s - timeout: 5s - retries: 200 - start_period: 30s - volumes: - - shared_config:/etc/master_env - - shared_tokens:/etc/tokens:ro - ports: - - 127.0.0.1:15200:3050 # JSON RPC HTTP port - - 127.0.0.1:15201:3051 # JSON RPC WS port - environment: - - DATABASE_PROVER_URL=postgres://postgres:notsecurepassword@postgres/prover_custombase - - DATABASE_URL=postgres://postgres:notsecurepassword@postgres/zksync_custombase - - ETH_CLIENT_WEB3_URL=http://reth:8545 - - CHAIN_ETH_ZKSYNC_NETWORK_ID=272 - - IN_DOCKER=true - - MASTER_URL=http://zksync:3050 - - MASTER_HEALTH_URL=http://zksync:3071/health - - MASTER_ENV_FILE=/etc/master_env/dev.env - - CUSTOM_BASE_TOKEN=BAT - - zksync_validium: - stdin_open: true - tty: true - image: matterlabs/local-node:hyperlocal - depends_on: - reth: - condition: service_started - postgres: - condition: service_started - zksync: - condition: service_healthy - zksync_custombase: # daisy chain - condition: service_healthy - healthcheck: - test: curl --fail http://localhost:3071/health || exit 1 - interval: 10s - timeout: 5s - retries: 200 - start_period: 30s - volumes: - - shared_config:/etc/master_env - - shared_tokens:/etc/tokens:ro - ports: - - 127.0.0.1:15300:3050 # JSON RPC HTTP port - - 127.0.0.1:15301:3051 # JSON RPC WS port - environment: - - DATABASE_PROVER_URL=postgres://postgres:notsecurepassword@postgres/prover_validium - - DATABASE_URL=postgres://postgres:notsecurepassword@postgres/zksync_validium - - ETH_CLIENT_WEB3_URL=http://reth:8545 - - CHAIN_ETH_ZKSYNC_NETWORK_ID=273 - - IN_DOCKER=true - - MASTER_URL=http://zksync:3050 - - MASTER_HEALTH_URL=http://zksync_custombase:3071/health ## daisy chain - - MASTER_ENV_FILE=/etc/master_env/dev.env - - CHAIN_STATE_KEEPER_L1_BATCH_COMMIT_DATA_GENERATOR_MODE=Validium - - VALIDIUM_MODE=1 + # zksync_custombase: + # stdin_open: true + # tty: true + # image: matterlabs/local-node:hyperlocal + # depends_on: + # reth: + # condition: service_started + # postgres: + # condition: service_started + # zksync: + # condition: service_healthy + # healthcheck: + # test: curl --fail http://localhost:3071/health || exit 1 + # interval: 10s + # timeout: 5s + # retries: 200 + # start_period: 30s + # volumes: + # - shared_config:/etc/master_env + # - shared_tokens:/etc/tokens:ro + # ports: + # - 127.0.0.1:15200:3050 # JSON RPC HTTP port + # - 127.0.0.1:15201:3051 # JSON RPC WS port + # environment: + # - DATABASE_PROVER_URL=postgres://postgres:notsecurepassword@postgres/prover_custombase + # - DATABASE_URL=postgres://postgres:notsecurepassword@postgres/zksync_custombase + # - ETH_CLIENT_WEB3_URL=http://reth:8545 + # - CHAIN_ETH_ZKSYNC_NETWORK_ID=272 + # - IN_DOCKER=true + # - MASTER_URL=http://zksync:3050 + # - MASTER_HEALTH_URL=http://zksync:3071/health + # - MASTER_ENV_FILE=/etc/master_env/dev.env + # - CUSTOM_BASE_TOKEN=BAT + + # zksync_validium: + # stdin_open: true + # tty: true + # image: matterlabs/local-node:hyperlocal + # depends_on: + # reth: + # condition: service_started + # postgres: + # condition: service_started + # zksync: + # condition: service_healthy + # zksync_custombase: # daisy chain + # condition: service_healthy + # healthcheck: + # test: curl --fail http://localhost:3071/health || exit 1 + # interval: 10s + # timeout: 5s + # retries: 200 + # start_period: 30s + # volumes: + # - shared_config:/etc/master_env + # - shared_tokens:/etc/tokens:ro + # ports: + # - 127.0.0.1:15300:3050 # JSON RPC HTTP port + # - 127.0.0.1:15301:3051 # JSON RPC WS port + # environment: + # - DATABASE_PROVER_URL=postgres://postgres:notsecurepassword@postgres/prover_validium + # - DATABASE_URL=postgres://postgres:notsecurepassword@postgres/zksync_validium + # - ETH_CLIENT_WEB3_URL=http://reth:8545 + # - CHAIN_ETH_ZKSYNC_NETWORK_ID=273 + # - IN_DOCKER=true + # - MASTER_URL=http://zksync:3050 + # - MASTER_HEALTH_URL=http://zksync_custombase:3071/health ## daisy chain + # - MASTER_ENV_FILE=/etc/master_env/dev.env + # - CHAIN_STATE_KEEPER_L1_BATCH_COMMIT_DATA_GENERATOR_MODE=Validium + # - VALIDIUM_MODE=1 data-fetcher_main: platform: linux/amd64 @@ -173,25 +174,25 @@ services: - BLOCKCHAIN_RPC_URL=http://zksync:3050 restart: unless-stopped - data-fetcher_custombase: - platform: linux/amd64 - image: "matterlabs/block-explorer-data-fetcher:latest" - environment: - - PORT=3040 - - LOG_LEVEL=verbose - - NODE_ENV=development - - BLOCKCHAIN_RPC_URL=http://zksync_custombase:3050 - restart: unless-stopped + # data-fetcher_custombase: + # platform: linux/amd64 + # image: "matterlabs/block-explorer-data-fetcher:latest" + # environment: + # - PORT=3040 + # - LOG_LEVEL=verbose + # - NODE_ENV=development + # - BLOCKCHAIN_RPC_URL=http://zksync_custombase:3050 + # restart: unless-stopped - data-fetcher_validium: - platform: linux/amd64 - image: "matterlabs/block-explorer-data-fetcher:latest" - environment: - - PORT=3040 - - LOG_LEVEL=verbose - - NODE_ENV=development - - BLOCKCHAIN_RPC_URL=http://zksync_validium:3050 - restart: unless-stopped + # data-fetcher_validium: + # platform: linux/amd64 + # image: "matterlabs/block-explorer-data-fetcher:latest" + # environment: + # - PORT=3040 + # - LOG_LEVEL=verbose + # - NODE_ENV=development + # - BLOCKCHAIN_RPC_URL=http://zksync_validium:3050 + # restart: unless-stopped @@ -211,38 +212,38 @@ services: - BATCHES_PROCESSING_POLLING_INTERVAL=1000 restart: unless-stopped - worker_custombase: - platform: linux/amd64 - image: "matterlabs/block-explorer-worker:latest" - environment: - - PORT=3001 - - LOG_LEVEL=verbose - - NODE_ENV=development - - DATABASE_HOST=postgres - - DATABASE_USER=postgres - - DATABASE_PASSWORD=notsecurepassword - - DATABASE_NAME=block-explorer_custombase - - BLOCKCHAIN_RPC_URL=http://zksync_custombase:3050 - - DATA_FETCHER_URL=http://data-fetcher_custombase:3040 - - BATCHES_PROCESSING_POLLING_INTERVAL=1000 - restart: unless-stopped - - - worker_validium: - platform: linux/amd64 - image: "matterlabs/block-explorer-worker:latest" - environment: - - PORT=3001 - - LOG_LEVEL=verbose - - NODE_ENV=development - - DATABASE_HOST=postgres - - DATABASE_USER=postgres - - DATABASE_PASSWORD=notsecurepassword - - DATABASE_NAME=block-explorer_validium - - BLOCKCHAIN_RPC_URL=http://zksync_validium:3050 - - DATA_FETCHER_URL=http://data-fetcher_validium:3040 - - BATCHES_PROCESSING_POLLING_INTERVAL=1000 - restart: unless-stopped + # worker_custombase: + # platform: linux/amd64 + # image: "matterlabs/block-explorer-worker:latest" + # environment: + # - PORT=3001 + # - LOG_LEVEL=verbose + # - NODE_ENV=development + # - DATABASE_HOST=postgres + # - DATABASE_USER=postgres + # - DATABASE_PASSWORD=notsecurepassword + # - DATABASE_NAME=block-explorer_custombase + # - BLOCKCHAIN_RPC_URL=http://zksync_custombase:3050 + # - DATA_FETCHER_URL=http://data-fetcher_custombase:3040 + # - BATCHES_PROCESSING_POLLING_INTERVAL=1000 + # restart: unless-stopped + + + # worker_validium: + # platform: linux/amd64 + # image: "matterlabs/block-explorer-worker:latest" + # environment: + # - PORT=3001 + # - LOG_LEVEL=verbose + # - NODE_ENV=development + # - DATABASE_HOST=postgres + # - DATABASE_USER=postgres + # - DATABASE_PASSWORD=notsecurepassword + # - DATABASE_NAME=block-explorer_validium + # - BLOCKCHAIN_RPC_URL=http://zksync_validium:3050 + # - DATA_FETCHER_URL=http://data-fetcher_validium:3040 + # - BATCHES_PROCESSING_POLLING_INTERVAL=1000 + # restart: unless-stopped api_main: @@ -261,36 +262,36 @@ services: restart: unless-stopped - api_custombase: - platform: linux/amd64 - image: "matterlabs/block-explorer-api:latest" - environment: - - PORT=3020 - - METRICS_PORT=3005 - - LOG_LEVEL=verbose - - NODE_ENV=development - - DATABASE_URL=postgres://postgres:notsecurepassword@postgres:5432/block-explorer_custombase - ports: - - '127.0.0.1:15202:3020' - depends_on: - - worker_custombase - restart: unless-stopped - - - api_validium: - platform: linux/amd64 - image: "matterlabs/block-explorer-api:latest" - environment: - - PORT=3020 - - METRICS_PORT=3005 - - LOG_LEVEL=verbose - - NODE_ENV=development - - DATABASE_URL=postgres://postgres:notsecurepassword@postgres:5432/block-explorer_validium - ports: - - '127.0.0.1:15302:3020' - depends_on: - - worker_validium - restart: unless-stopped + # api_custombase: + # platform: linux/amd64 + # image: "matterlabs/block-explorer-api:latest" + # environment: + # - PORT=3020 + # - METRICS_PORT=3005 + # - LOG_LEVEL=verbose + # - NODE_ENV=development + # - DATABASE_URL=postgres://postgres:notsecurepassword@postgres:5432/block-explorer_custombase + # ports: + # - '127.0.0.1:15202:3020' + # depends_on: + # - worker_custombase + # restart: unless-stopped + + + # api_validium: + # platform: linux/amd64 + # image: "matterlabs/block-explorer-api:latest" + # environment: + # - PORT=3020 + # - METRICS_PORT=3005 + # - LOG_LEVEL=verbose + # - NODE_ENV=development + # - DATABASE_URL=postgres://postgres:notsecurepassword@postgres:5432/block-explorer_validium + # ports: + # - '127.0.0.1:15302:3020' + # depends_on: + # - worker_validium + # restart: unless-stopped app: platform: linux/amd64 @@ -303,8 +304,8 @@ services: - '127.0.0.1:15005:3010' depends_on: - api_main - - api_custombase - - api_validium + # - api_custombase + # - api_validium restart: unless-stopped @@ -385,10 +386,10 @@ services: depends_on: zksync: condition: service_healthy - zksync_validium: - condition: service_healthy - zksync_custombase: - condition: service_healthy + # zksync_validium: + # condition: service_healthy + # zksync_custombase: + # condition: service_healthy image: ghcr.io/mm-zk/zksync_tools:latest ports: - 127.0.0.1:15000:5000