mirror of
https://github.com/d0zingcat/deploy.git
synced 2026-05-19 15:09:58 +00:00
Merge branch 'main' of https://github.com/hummingbot/deploy-examples into compose-fix
This commit is contained in:
@@ -8,20 +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 the image tag from `latest` to `latest-arm` to pull the image built for ARM-based machines. You can also comment out the line that contains `latest` and uncomment the line that contains `latest-arm`:
|
||||
```
|
||||
# image: hummingbot/hummingbot:latest
|
||||
image: hummingbot/hummingbot: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
|
||||
|
||||
Auto-starting a script/strategy lets you start a bot from the command line, skipping the Hummingbot UI.
|
||||
@@ -31,15 +17,13 @@ To enable this, you will do need a few things first:
|
||||
- Set the password used to encrypt your keys (`CONFIG_PASSWORD`)
|
||||
- Define your script or strategy config file that you want to auto-start (`CONFIG_FILE_NAME`)
|
||||
|
||||
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,21 +1,20 @@
|
||||
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]
|
||||
# - CONFIG_FILE_NAME=simple_pmm_example.py
|
||||
# - CONFIG_FILE_NAME=conf_pure_mm_1.yml
|
||||
- "./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"
|
||||
# environment:
|
||||
# - CONFIG_PASSWORD=[password]
|
||||
# - CONFIG_FILE_NAME=simple_pmm_example.py
|
||||
# - CONFIG_FILE_NAME=conf_pure_mm_1.yml
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
|
||||
Reference in New Issue
Block a user