Skip to content

Commit

Permalink
fix docker-compose.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
imabdulbasit committed Feb 25, 2025
1 parent 3e64591 commit 6ee04ba
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,35 @@ services:
- "./geth-config/genesis-default.json:/genesis.json"
- "./geth-config/test-jwt-secret.txt:/config/test-jwt-secret.txt"

deploy-sequencer-contracts:
deploy-fee-contract:
image: ghcr.io/espressosystems/espresso-sequencer/deploy:main
command: deploy --only fee-contract,permissioned-stake-table
command: deploy --only fee-contract
environment:
- ESPRESSO_SEQUENCER_INITIAL_PERMISSIONED_STAKE_TABLE_PATH=/data/initial_stake_table.toml
- ESPRESSO_SEQUENCER_ETH_MULTISIG_ADDRESS
- ESPRESSO_SEQUENCER_L1_PROVIDER
- ESPRESSO_SEQUENCER_L1_POLLING_INTERVAL
- ESPRESSO_DEPLOYER_ACCOUNT_INDEX
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
volumes:
- "./data/initial_stake_table.toml:/data/initial_stake_table.toml"
depends_on:
demo-l1-network:
condition: service_healthy

deploy-stake-table-contract:
image: ghcr.io/espressosystems/espresso-sequencer/deploy:main
command: deploy --only permissioned-stake-table
environment:
- ESPRESSO_SEQUENCER_L1_PROVIDER
- ESPRESSO_SEQUENCER_L1_POLLING_INTERVAL
- ESPRESSO_DEPLOYER_ACCOUNT_INDEX
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
depends_on:
deploy-fee-contract:
condition: service_completed_successfully

deploy-prover-contracts:
image: ghcr.io/espressosystems/espresso-sequencer/deploy:main
command: deploy --use-mock-contract --only light-client
Expand All @@ -54,7 +65,9 @@ services:
sequencer0:
condition: service_healthy
# Make sure this doesn't start until the other contracts have been deployed, since we use the same mnemonic.
deploy-sequencer-contracts:
deploy-stake-table-contract:
condition: service_completed_successfully
deploy-fee-contract:
condition: service_completed_successfully

fund-builder:
Expand Down Expand Up @@ -220,6 +233,19 @@ services:
deploy-prover-contracts:
condition: service_completed_successfully


update-permissioned-stake-table:
image: ghcr.io/espressosystems/espresso-sequencer/update-permissioned-stake-table:main
environment:
- ESPRESSO_SEQUENCER_PERMISSIONED_STAKE_TABLE_ADDRESS
- ESPRESSO_SEQUENCER_STATE_PEERS=http://sequencer:$ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_ETH_MNEMONIC
- ESPRESSO_SEQUENCER_L1_PROVIDER
depends_on:
deploy-prover-contracts:
condition: service_completed_successfully
sequencer0:
condition: service_healthy
sequencer0:
image: ghcr.io/espressosystems/espresso-sequencer/sequencer:main
ports:
Expand Down

0 comments on commit 6ee04ba

Please sign in to comment.