mirror of
https://github.com/d0zingcat/deploy.git
synced 2026-05-18 15:09:54 +00:00
Deploy and autostart a single Hummingbot instance with docker Compose
How to use it
-
Make sure you have docker and docker-compose installed.
-
To autostart you will need the config_file of the strategy, and the password already generated.
-
Important:
- In this example the password generated is
aand it was done in a Mac, if you are using a different OS or you want to use a different password, make sure to delete the .password_verification file under the conf folder and follow the instructions on troubleshooting. - You can autostart a strategy or a script. In this case on line
13we are autostarting a script that is inside the scripts folder. If you want to start a strategy, there is one config file under conf/strategies, you can just change format_status.py for conf_pure_mm_1.yml to test it!
- In this example the password generated is
-
Make sure that the compose file on lines
12and13have the correct path to the config file and the password. -
Run the following command:
docker-compose up -d -
Attach the terminal:
docker attach simple_hummingbot_compose-bot-1 -
Now you have Hummingbot running and autostarted! Remember that you can detach the terminal without stopping the bot by pressing
Ctrl + PandCtrl + Q.
Troubleshooting
If you don't have the password you can
- Remove the line
12and13from the compose file - Start the bot with the following command:
docker-compose up -d - Attach the terminal:
docker attach autostart_hummingbot_compose-bot-1
- Create the password and exit the client
- Add the line
12and13to the compose file and start over!