Skip to content

Commit

Permalink
Update docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
abhirajprasad authored Jan 10, 2025
1 parent 116989d commit eb069b1
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@ services:
- "1317:1317" # REST API
- "9090:9090" # gRPC
environment:
- MONIKER=my-celestia-node
- CHAIN_ID=test # Changed from 'celestia' to 'test'
MONIKER: "my-test-node"
CHAIN_ID: "test"

entrypoint: /bin/sh
command: >
sh -c "
if [ ! -f /root/.celestia-app/config/genesis.json ]; then
celestia-appd init $MONIKER --chain-id $CHAIN_ID &&
celestia-appd keys add validator --keyring-backend test &&
celestia-appd add-genesis-account $$(celestia-appd keys show validator -a --keyring-backend test) 10000000000utia &&
celestia-appd gentx validator 1000000000utia --chain-id $CHAIN_ID --keyring-backend test &&
celestia-appd collect-gentxs
fi &&
celestia-appd start --rpc.laddr tcp://0.0.0.0:26657"
restart: unless-stopped

-c "
if [ ! -f /root/.celestia-app/config/genesis.json ]; then
celestia-appd init $$MONIKER --chain-id $$CHAIN_ID &&
celestia-appd keys add validator --keyring-backend test &&
celestia-appd add-genesis-account $$(celestia-appd keys show validator -a --keyring-backend test) 10000000000utia &&
celestia-appd gentx validator 1000000000utia --chain-id $$CHAIN_ID --keyring-backend test &&
celestia-appd collect-gentxs
fi &&
celestia-appd start --rpc.laddr tcp://0.0.0.0:26657"
volumes:
celestia-data:

0 comments on commit eb069b1

Please sign in to comment.