mirror of
https://github.com/d0zingcat/deploy.git
synced 2026-05-20 15:10:02 +00:00
(feat) deployment scenarios
This commit is contained in:
16
simple_hummingbot_compose/README.md
Normal file
16
simple_hummingbot_compose/README.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# Deploy a single Hummingbot instance with docker Compose
|
||||
|
||||
## How to use it
|
||||
|
||||
- Make sure you have docker and docker-compose installed.
|
||||
- Run the following command:
|
||||
```
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
- Attach the terminal:
|
||||
```
|
||||
docker attach simple_hummingbot_compose-bot-1
|
||||
```
|
||||
|
||||
- Now you have Hummingbot running! Remember that you can detach the terminal without stopping the bot by pressing `Ctrl + P` and `Ctrl + Q`.
|
||||
18
simple_hummingbot_compose/docker-compose.yml
Normal file
18
simple_hummingbot_compose/docker-compose.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
version: "3.9"
|
||||
services:
|
||||
bot:
|
||||
image: hummingbot/hummingbot:latest
|
||||
volumes:
|
||||
- "./hummingbot_files/conf:/conf"
|
||||
- "./hummingbot_files/logs:/logs"
|
||||
- "./hummingbot_files/data:/data"
|
||||
- "./hummingbot_files/scripts:/scripts"
|
||||
- "./hummingbot_files/certs:/certs"
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: 5
|
||||
tty: true
|
||||
stdin_open: true
|
||||
network_mode: host
|
||||
Reference in New Issue
Block a user