mirror of
https://github.com/d0zingcat/deploy.git
synced 2026-05-13 15:09:33 +00:00
fix gateway compose
This commit is contained in:
@@ -88,7 +88,7 @@ If you define a `.yml` file as `CONFIG_FILE_NAME`, Hummingbot assumes it's a str
|
||||
|
||||
See [`conf_pure_mm_1.yml`](./hummingbot_files/conf/strategies/conf_pure_mm_1.yml) for an example.
|
||||
|
||||
### Modify the YAML file
|
||||
### Modify YAML file
|
||||
|
||||
Now, use an IDE like [VSCode](https://code.visualstudio.com/) to edit the `docker-compose.yml` file.
|
||||
|
||||
@@ -112,7 +112,12 @@ Remove the '#' to uncomment out:
|
||||
- CONFIG_FILE_NAME=simple_pmm_example.py
|
||||
```
|
||||
|
||||
Afterwards, save the file. Now, the script or strategy will auto-start when you create the container:
|
||||
Afterwards, save the file.
|
||||
|
||||
|
||||
## Recreate container
|
||||
|
||||
Now, the script or strategy will auto-start when you create the container:
|
||||
```
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
@@ -83,19 +83,28 @@ You'll be prompted for a passphrase used to generate the certificates. This is t
|
||||
|
||||
Afterwards, Hummingbot will use the passphrase to generate the certificates and save them in the `hummingbot_files/certs` folder, where the Gateway instance will look for the certificates it needs.
|
||||
|
||||
Now, run `stop` to exit the client. Once you're back in Bash/Terminal, run the following command to stop the Compose network:
|
||||
Now, run `stop` to exit the client. Once you're back in Bash/Terminal, run the following command to remove the network:
|
||||
|
||||
```
|
||||
docker-compose down
|
||||
```
|
||||
|
||||
You should see the following output:
|
||||
```
|
||||
[+] Running 3/3 ⠿ Container hummingbot_gateway_compose-gateway-1 Removed
|
||||
⠿ Container hummingbot_gateway_compose-bot-1 Removed
|
||||
⠿ Network hummingbot_gateway_compose_default Removed
|
||||
```
|
||||
|
||||
### Modify YAML file
|
||||
|
||||
Now, use an IDE like [VSCode](https://code.visualstudio.com/) to edit the `docker-compose.yml` file.
|
||||
|
||||
We'll edit the section that defines the Gateway environment variables:
|
||||
```yaml
|
||||
# environment:
|
||||
# - GATEWAY_PASSPHRASE=[passphrase]
|
||||
```
|
||||
|
||||
Remove the '#' to uncomment out:
|
||||
* The `environment:` line
|
||||
@@ -104,7 +113,6 @@ Remove the '#' to uncomment out:
|
||||
The final `environment` section of the YAML file should look like this:
|
||||
```yaml
|
||||
environment:
|
||||
- CONFIG_PASSWORD=[password]
|
||||
- GATEWAY_PASSPHRASE=[passphrase]
|
||||
```
|
||||
|
||||
|
||||
@@ -30,5 +30,5 @@ services:
|
||||
- "./gateway_files/conf:/usr/src/app/conf"
|
||||
- "./gateway_files/logs:/usr/src/app/logs"
|
||||
- "./hummingbot_files/certs:/usr/src/app/certs"
|
||||
# environment:
|
||||
# - GATEWAY_PASSPHRASE=[passphrase]
|
||||
environment:
|
||||
- GATEWAY_PASSPHRASE=gators
|
||||
|
||||
Reference in New Issue
Block a user