Files
deploy/multiple_hummingbot_gateway_compose
Michael Feng 2e27409531 clarify readme
2023-04-04 16:22:56 -07:00
..
2023-03-21 13:36:19 -03:00
2023-04-04 16:22:56 -07:00

Deploy Hummingbot and Gateway Instances

How to use it

You will need to have the certificates for the gateway and hummingbot under the folder hummingbot_files/certs. If you don't have it, don't worry, you can generate them with the client by doing the following:

  • Make sure you have docker and docker-compose installed.

  • Run the following command in the terminal:

    docker-compose up -d
    
  • You will see that the gateway failed to start because you don't have the certificates

  • Attach the instance of the bot by running:

    docker attach hummingbot_gateway_compose-bot-1
    
  • Create the password

  • Run the following command in the client:

    gateway generate-certs
    
  • When prompted enter the passphrase that you want. Is important that you change the docker-compose.yml on line 18 to the passphrase that you entered (the current passphrase is a).

  • Exit the client and run the following command in the terminal:

    docker-compose down
    
  • You will see that inside the hummingbot_files/certs folder you have the certificates.

  • We are ready to deploy the gateway and hummingbot, run the following command in the terminal:

    docker-compose up -d
    
  • If you attach the terminal of the gateway you will see that it is running.

    docker attach hummingbot_gateway_compose-gateway-1
    
  • If you attach the terminal of the bot you will see that it is running and the gateway is ONLINE.

    docker attach hummingbot_gateway_compose-bot-1
    
  • If you attach the terminal of the bot2 you will see that it is running and the gateway is ONLINE.

    docker attach hummingbot_gateway_compose-bot2-1
    

IMPORTANT

To simplify the example, we are sharing the folder of hummingbot_files between the two bots. You should have one folder for each bot, but the certs folder that you are sharing between the gateway and the bots should be the same.