Update README.md

This commit is contained in:
dardonacci
2023-02-23 16:52:38 -03:00
committed by GitHub
parent a6cbceacf1
commit d5d4c989d5

View File

@@ -1,38 +1,52 @@
# Deploy: Hummingbot + Gateway # Deploy: Hummingbot + Gateway
## How to use it ## 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: 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. - Make sure you have docker and docker-compose installed.
- Run the following command in the terminal: - Run the following command in the terminal:
``` ```
docker-compose up -d docker-compose up -d
``` ```
- You will see that the gateway failed to start because you don't have the certificates - You will see that the gateway failed to start because you don't have the certificates
- Attach the instance of the bot by running: - Attach the instance of the bot by running:
``` ```
docker attach hummingbot_gateway_compose-bot-1 docker attach hummingbot_gateway_compose-bot-1
``` ```
- Create the password - Create the password
- Run the following command in the client: - Run the following command in the client:
``` ```
gateway generate-certs 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`). - 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: - Exit the client and run the following command in the terminal:
``` ```
docker-compose down docker-compose down
``` ```
- You will see that inside the hummingbot_files/certs folder you have the certificates. - 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: - We are ready to deploy the gateway and hummingbot, run the following command in the terminal:
``` ```
docker-compose up -d docker-compose up -d
``` ```
- If you attach the terminal of the gateway you will see that it is running. - If you attach the terminal of the gateway you will see that it is running.
``` ```
docker attach hummingbot_gateway_compose-gateway-1 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. - 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 docker attach hummingbot_gateway_compose-bot-1
``` ```