Skip to content

Commit

Permalink
(test): comment out chains other than main
Browse files Browse the repository at this point in the history
  • Loading branch information
Raid Ateir committed Jan 29, 2025
1 parent ac421d7 commit 7f0a07f
Showing 1 changed file with 157 additions and 156 deletions.
313 changes: 157 additions & 156 deletions zk-chains-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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



Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7f0a07f

Please sign in to comment.