Merge branch 'main' of https://github.com/hummingbot/deploy-examples into compose-fix

This commit is contained in:
david-hummingbot
2023-05-11 01:40:16 +08:00
14 changed files with 151 additions and 197 deletions

View File

@@ -11,25 +11,6 @@ This configuration requires [Docker Compose](https://docs.docker.com/compose/),
See [Docker](../DOCKER.md) for more information about how to install and use Docker Compose, as well as helpful commands.
## Apple M1/M2 and other ARM machines
If you have a recent Mac that uses Apple Silicon (M1/M2) chipset or another ARM-based machine, you need to change the image tag to ensure that you pull a container that is optimized for your chip architecture.
Use an IDE like [VSCode](https://code.visualstudio.com/) to edit the `docker-compose.yml` file. Change the tag for **both** the Hummingbot and Gateway images from `latest` to `latest-arm` to pull the images built for ARM-based machines.
You can also comment out the each line that contains `latest` and uncomment each line that contains `latest-arm`:
```
# image: hummingbot/hummingbot:latest
image: hummingbot/hummingbot:latest-arm
# image: hummingbot/gateway:latest
image: hummingbot/gateway:latest-arm
```
Afterwards, save the file and proceed to the next step.
If you are using a Mac with an Intel (x86) chipset, Windows or any other Intel-based machine, you don't need to make any changes before deploying a container.
## Getting Started
This configuration lets you orchestrate Hummingbot and Gateway instances using an EMQX broker.
@@ -40,15 +21,13 @@ To enable this, you will do need a few things first:
- Give Gateway the passphrase used to generate the certificates (`GATEWAY_PASSPHRASE`)
- Configure the EMQX broker
First, let's check that you have installed Docker Compose successfully. In Terminal/Bash, Run the following command:
```
docker compose
Verify that Docker Compose is installed correctly by checking the version:
```bash
docker compose version
```
You should see a response that start with:
```
Usage: docker compose [OPTIONS] COMMAND
```
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