Skip to content

Commit

Permalink
fix: provernet docker compose
Browse files Browse the repository at this point in the history
  • Loading branch information
alexghr committed Nov 26, 2024
1 parent c0a2ecc commit 1344aeb
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions docker-compose.provernet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ services:
ARCHIVER_POLLING_INTERVAL_MS: 1000
ARCHIVER_VIEM_POLLING_INTERVAL_MS: 1000
PROVER_VIEM_POLLING_INTERVAL_MS: 1000
PROVER_AGENT_ENABLED: false
PROVER_AGENT_COUNT: 0
PROVER_BROKER_URL: http://aztec-prover-broker
PROVER_PUBLISHER_PRIVATE_KEY: "0xdbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97"
PROVER_REAL_PROOFS: "${PROVER_REAL_PROOFS:-false}"
PROVER_MINIMUM_ESCROW_AMOUNT: 1000000000
Expand All @@ -76,6 +77,8 @@ services:
depends_on:
aztec-node:
condition: service_healthy
aztec-prover-broker:
condition: service_healthy
healthcheck:
test: [ "CMD", "curl", "-fSs", "http://127.0.0.1:80/status" ]
interval: 3s
Expand All @@ -84,6 +87,21 @@ services:
command: [ "start", "--prover-node", "--archiver" ]
restart: on-failure:5

aztec-prover-broker:
image: "aztecprotocol/${IMAGE:-aztec:master}"
ports:
- "8084:80"
environment:
LOG_LEVEL: verbose
AZTEC_PORT: 80
healthcheck:
test: [ "CMD", "curl", "-fSs", "http://127.0.0.1:80/status" ]
interval: 3s
timeout: 30s
start_period: 120s
command: [ "start", "--prover-broker" ]
restart: on-failure:5

# Prover agent that connects to the prover-node for fetching proving jobs and executing them
# Multiple instances can be run, or PROVER_AGENT_CONCURRENCY can be increased to run multiple workers in a single instance
aztec-prover-agent:
Expand All @@ -93,23 +111,24 @@ services:
environment:
LOG_LEVEL: verbose
ETHEREUM_HOST: http://ethereum:8545
AZTEC_NODE_URL: http://aztec-prover # Deprecated, use PROVER_JOB_SOURCE_URL
PROVER_JOB_SOURCE_URL: http://aztec-prover
PROVER_BROKER_URL: http://aztec-prover-broker
L1_CHAIN_ID: 31337
AZTEC_PORT: 80
PROVER_REAL_PROOFS: "${PROVER_REAL_PROOFS:-false}"
PROVER_TEST_DELAY_MS: "${PROVER_TEST_DELAY_MS:-0}"
PROVER_AGENT_CONCURRENCY: 2
BB_SKIP_CLEANUP: "${BB_SKIP_CLEANUP:-0}" # Persist tmp dirs for debugging
PROVER_ID: "${PROVER_ID:-0x01}"
volumes:
- ./log/aztec-prover-agent/:/usr/src/yarn-project/aztec/log:rw
- ./cache/bb-crs/:/root/.bb-crs:rw
- ./workdir/bb-prover/:/usr/src/yarn-project/bb:rw
depends_on:
aztec-prover:
aztec-prover-broker:
condition: service_healthy
command: [ "start", "--prover" ]
command: [ "start", "--prover-agent" ]
deploy:
mode: replicated
replicas: 2
restart: on-failure:5
healthcheck:
test: [ "CMD", "curl", "-fSs", "http://127.0.0.1:80/status" ]
Expand Down

0 comments on commit 1344aeb

Please sign in to comment.