From a601aaa4b5cc778631c5909ab75fdf5979084bba Mon Sep 17 00:00:00 2001 From: Michael Feng Date: Thu, 8 Jun 2023 17:51:10 -0700 Subject: [PATCH] change hummingbot gateway setup --- hummingbot_gateway_compose/README.md | 12 +++++++++++- hummingbot_gateway_compose/docker-compose.yml | 10 +++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/hummingbot_gateway_compose/README.md b/hummingbot_gateway_compose/README.md index 644e70a..5de6536 100644 --- a/hummingbot_gateway_compose/README.md +++ b/hummingbot_gateway_compose/README.md @@ -50,13 +50,23 @@ After the images have been downloaded, you should see the following output: ⠿ Container gateway Started ``` -### 2. Set permissions +### 2. Set permissions and other initialization operations Run this command from your root folder to grant read/write permission to the `hummingbot_files` and `gateway_files` sub-folders: ``` sudo chmod -R a+rw ./hummingbot_files ./gateway_files ``` +Populate Hummingbot scripts folder with example scripts from the Hummingbot image: +``` +docker cp hummingbot:/home/hummingbot/scripts ./hummingbot_files/scripts +``` + +Populate Gateway lists folder from token lists from the Gateway image: +``` +docker cp gateway:/home/gateway/src/templates/lists ./gateway_files/conf/lists +``` + ### 3. Launch Hummingbot and generate certificates Now, attach to the `hummingbot` instance: diff --git a/hummingbot_gateway_compose/docker-compose.yml b/hummingbot_gateway_compose/docker-compose.yml index 83e1658..47f1246 100644 --- a/hummingbot_gateway_compose/docker-compose.yml +++ b/hummingbot_gateway_compose/docker-compose.yml @@ -9,10 +9,9 @@ services: - "./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_PASSWORD=[password] logging: driver: "json-file" options: @@ -29,8 +28,9 @@ services: - "15888:15888" - "8080:8080" volumes: - - "./gateway_files/conf:/usr/src/app/conf" - - "./gateway_files/logs:/usr/src/app/logs" - - "./hummingbot_files/certs:/usr/src/app/certs" + - "./gateway_files/conf:/home/gateway/conf" + - "./gateway_files/logs:/home/gateway/logs" + - "./gateway_files/db:/home/gateway/db" + - "./hummingbot_files/certs:/home/gateway/certs" # environment: # - GATEWAY_PASSPHRASE=[passphrase]