# 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 `a` and 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 `13` we 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! - Make sure that the compose file on lines `12` and `13` have 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 + P` and `Ctrl + Q`. ## Troubleshooting If you don't have the password you can - Remove the line `12` and `13` from 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 `12` and `13` to the compose file and start over!