diff --git a/README.md b/README.md index 05761cf2..83e8f1f9 100644 --- a/README.md +++ b/README.md @@ -43,8 +43,9 @@ Windows: cd ergo-dex-backend copy ./config-example.env ./config.env ``` -The 2 values that need to be changed in the `config.env` file are the mnemonic ([howto](https://github.com/spectrum-finance/ergo-dex-backend/blob/master/modules/amm-executor/src/test/scala/org/ergoplatfrom/dex/executor/amm/HowTo.scala)) from which bot will create the wallet to receive fees on and pay miner fees from (in SPF fee cases) +The 3 values that need to be changed in the `config.env` file are the mnemonic ([howto](https://github.com/spectrum-finance/ergo-dex-backend/blob/master/modules/amm-executor/src/test/scala/org/ergoplatfrom/dex/executor/amm/HowTo.scala)) from which bot will create the wallet to receive fees on and pay miner fees from (in SPF fee cases) and the URI to your node (localhost/127.0.0.1 might not be accessible from within a docker container, it is best to use the local lan ip if the node is running on the same host). +You have to setup URI twice. ### Running the services Once the `config.env` file is created, make sure you have funds on expected address (you can check which address bot will use with `HowTo.scala` script). Next, the only thing left to do is to run the containers: diff --git a/config-example.env b/config-example.env index 2196f9da..04e773a1 100644 --- a/config-example.env +++ b/config-example.env @@ -1 +1,2 @@ -JAVA_TOOL_OPTIONS="-Dnetwork.node-uri=http://:9053 -Dexchange.mnemonic='' " \ No newline at end of file +JAVA_TOOL_OPTIONS="-Dnetwork.node-uri=http://:9053 -Dexchange.mnemonic='' " +URL=http://:9053 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 8a26e7ce..3ba81bb5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -58,6 +58,18 @@ services: - kafka networks: - spectrum-network + events-tracker: + image: spectrumlabs/ergo-bots-tracker:latest + volumes: + - "log-data:/usr/src/events-streaming/log" + env_file: config.env + depends_on: + - kafka1 + - kafka2 + - kafka3 + - utxo-tracker + networks: + - spectrum-network networks: spectrum-network: diff --git a/modules/utxo-tracker/src/main/resources/application.conf b/modules/utxo-tracker/src/main/resources/application.conf index 4f495f6c..d4eafcac 100644 --- a/modules/utxo-tracker/src/main/resources/application.conf +++ b/modules/utxo-tracker/src/main/resources/application.conf @@ -37,8 +37,8 @@ redis.uri = "redis://redis:6379" mempool-tx-consumer.group-id = "ergo-mempool" mempool-tx-consumer.client-id = "ergo-mempool-1" -mempool-tx-consumer.topic-id = "dex.amm.cfmm.mempool.events" +mempool-tx-consumer.topic-id = "mempool-tx-topic" ledger-tx-consumer.group-id = "ergo-ledger" ledger-tx-consumer.client-id = "ergo-ledger-1" -ledger-tx-consumer.topic-id = "dex.amm.cfmm.ledger.events" \ No newline at end of file +ledger-tx-consumer.topic-id = "ledger-tx-topic" \ No newline at end of file