mirror of
https://github.com/d0zingcat/deploy.git
synced 2026-05-19 07:26:44 +00:00
1.7 KiB
1.7 KiB
Deploy and autostart a single Hummingbot instance with docker Compose
How to use it
- Ensure that you have Docker and Docker Compose installed on your machine.
- To autostart, you will need the
config_fileof the strategy and the password already generated. - Important:
- In this example, the password generated is
a, and it was done on a Mac. If you are using a different OS or want to use a different password, make sure to delete the.password_verificationfile under theconffolder and follow the instructions in the troubleshooting section. - You can autostart a strategy or a script. In this case, on line
13, we are autostarting a script that is inside thescriptsfolder. If you want to start a strategy, there is oneconfigfile underconf/strategies. You can changeformat_status.pyforconf_pure_mm_1.ymlto 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 lines
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 lines
12and13to the compose file and start over!