mirror of
https://github.com/d0zingcat/deploy.git
synced 2026-05-23 07:26:53 +00:00
change hummingbot gateway setup
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user