Files
deploy/multiple_bots_setup
david-hummingbot 87b3223cb6 update compose files
2024-03-15 12:50:58 +00:00
..
2024-03-14 19:49:10 -03:00
2024-03-14 19:51:01 -03:00
2024-03-15 12:50:58 +00:00

Deploy Multiple Hummingbot Instances

This installs two Hummingbot instances

Prerequisites

This configuration requires Docker Compose, a tool for defining and running multi-container Docker applications. The recommended way to get Docker Compose is to install Docker Desktop, which includes Docker Compose along with Docker Engine and Docker CLI which are Compose prerequisites.

See Docker for more information about how to install and use Docker Compose, as well as helpful commands.

Getting Started

This configuration lets you deploy multiple Hummingbot instances that access data and execute orders on DEX connectors.

To enable this, you will do need a few things first:

  • Install and configure the Hummingbot and Gateway instances
  • Generate self-signed certificates in Hummingbot
  • Give Gateway the passphrase used to generate the certificates (GATEWAY_PASSPHRASE)

Verify that Docker Compose is installed correctly by checking the version:

docker compose version

The output should be: Docker Compose version v2.17.2 or similar. Ensure that you are using Docker Compose V2, as V1 is deprecated.

1. Launch network

Clone this repo to your machine and go to the folder:

git clone https://github.com/hummingbot/deploy-examples.git
cd deploy-examples/multiple_bots_setupp

Alternatively, copy the docker-compose.yml file to a directory on your machine where you want to store your Hummingbot files.

This is the "root folder" where your encrypted keys, scripts, trades, configs, logs, and other files related to your bots will be saved.

From the root folder, run the following command to pull the image and start the instance:

docker compose up -d

After the images have been downloaded, you should see the following output:

[+] Running 4/4
 ⠿ Network multiple_bots_setup                                Created
 ⠿ Container bot_1                                            Started
 ⠿ Container bot_2                                            Started
 

2. Set permissions

Run this command from your root folder to grant read/write permission to the hummingbot_files folder and sub-folders:

sudo chmod -R a+rw ./hummingbot_files

3. Launch Hummingbot

N