mirror of
https://github.com/d0zingcat/deploy.git
synced 2026-05-16 15:09:49 +00:00
Merge branch 'main' of https://github.com/hummingbot/deploy-examples into compose-fix
This commit is contained in:
@@ -8,25 +8,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
|
||||
|
||||
Installing Hummingbot alongside Gateway lets you access data and execute orders on DEX connectors.
|
||||
@@ -36,15 +17,13 @@ To enable this, you will do need a few things first:
|
||||
- Generate self-signed certificates in Hummingbot
|
||||
- Give Gateway the passphrase used to generate the certificates (`GATEWAY_PASSPHRASE`)
|
||||
|
||||
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
|
||||
|
||||
|
||||
@@ -1,19 +1,16 @@
|
||||
version: "3.9"
|
||||
services:
|
||||
hummingbot:
|
||||
container_name: "hummingbot"
|
||||
container_name: hummingbot
|
||||
image: hummingbot/hummingbot:latest
|
||||
# image: hummingbot/hummingbot:latest-arm
|
||||
volumes:
|
||||
- "./hummingbot_files/conf:/conf"
|
||||
- "./hummingbot_files/conf/connectors:/conf/connectors"
|
||||
- "./hummingbot_files/conf/strategies:/conf/strategies"
|
||||
- "./hummingbot_files/logs:/logs"
|
||||
- "./hummingbot_files/data:/data"
|
||||
- "./hummingbot_files/scripts:/scripts"
|
||||
- "./hummingbot_files/certs:/certs"
|
||||
# environment:
|
||||
# - CONFIG_PASSWORD=[password]
|
||||
- "./hummingbot_files/conf:/home/hummingbot/conf"
|
||||
- "./hummingbot_files/conf/connectors:/home/hummingbot/conf/connectors"
|
||||
- "./hummingbot_files/conf/strategies:/home/hummingbot/conf/strategies"
|
||||
- "./hummingbot_files/logs:/home/hummingbot/logs"
|
||||
- "./hummingbot_files/data:/home/hummingbot/data"
|
||||
- "./hummingbot_files/scripts:/home/hummingbot/scripts"
|
||||
- "./hummingbot_files/certs:/home/hummingbot/certs"
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
@@ -24,9 +21,8 @@ services:
|
||||
network_mode: host
|
||||
|
||||
gateway:
|
||||
container_name: "gateway"
|
||||
container_name: gateway
|
||||
image: hummingbot/gateway:latest
|
||||
# image: hummingbot/gateway:latest-arm
|
||||
ports:
|
||||
- "15888:15888"
|
||||
- "8080:8080"
|
||||
|
||||
Reference in New Issue
Block a user