diff --git a/docker-compose.yml b/docker-compose.yml index 3a3daea..a8d23a7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -41,7 +41,37 @@ services: aliases: - updater ipv4_address: 172.22.0.5 - + + head: + container_name: head-basic-eth-pred + image: alloranetwork/allora-inference-base-head:latest + environment: + - HOME=/data + entrypoint: + - "/bin/bash" + - "-c" + - | + if [ ! -f /data/keys/priv.bin ]; then + echo "Generating new private keys..." + mkdir -p /data/keys + cd /data/keys + allora-keys + fi + allora-node --role=head --peer-db=/data/peerdb --function-db=/data/function-db \ + --runtime-path=/app/runtime --runtime-cli=bls-runtime --workspace=/data/workspace \ + --private-key=/data/keys/priv.bin --log-level=debug --port=9010 --rest-api=:6000 \ + --boot-nodes=/dns4/head-0-p2p.v2.testnet.allora.network/tcp/32130/p2p/12D3KooWGKY4z2iNkDMERh5ZD8NBoAX6oWzkDnQboBRGFTpoKNDF + ports: + - "6000:6000" + volumes: + - ./head-data:/data + working_dir: /data + networks: + eth-model-local: + aliases: + - head + ipv4_address: 172.22.0.100 + worker: container_name: worker-basic-eth-pred environment: @@ -65,7 +95,7 @@ services: --runtime-path=/app/runtime --runtime-cli=bls-runtime --workspace=/data/workspace \ --private-key=/data/keys/priv.bin --log-level=debug --port=9011 \ --boot-nodes=/ip4/172.22.0.100/tcp/9010/p2p/head-id \ - --topic=1 + --topic=allora-topic-{allora-chain-topic-id}-worker --allora-chain-worker-mode=worker volumes: - ./worker-data:/data working_dir: /data @@ -78,34 +108,6 @@ services: - worker ipv4_address: 172.22.0.10 - head: - container_name: head-basic-eth-pred - image: alloranetwork/allora-inference-base-head:latest - environment: - - HOME=/data - entrypoint: - - "/bin/bash" - - "-c" - - | - if [ ! -f /data/keys/priv.bin ]; then - echo "Generating new private keys..." - mkdir -p /data/keys - cd /data/keys - allora-keys - fi - allora-node --role=head --peer-db=/data/peerdb --function-db=/data/function-db \ - --runtime-path=/app/runtime --runtime-cli=bls-runtime --workspace=/data/workspace \ - --private-key=/data/keys/priv.bin --log-level=debug --port=9010 --rest-api=:6000 - ports: - - "6000:6000" - volumes: - - ./head-data:/data - working_dir: /data - networks: - eth-model-local: - aliases: - - head - ipv4_address: 172.22.0.100 networks: