From 18fab86431f8ed67c3d56a4633a559e14e745dd7 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 18 Aug 2022 08:32:15 +0200 Subject: [PATCH] Add dock segment about webserver mode for docker --- docs/utils.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/utils.md b/docs/utils.md index 0dd88b242..5646365e4 100644 --- a/docs/utils.md +++ b/docs/utils.md @@ -611,6 +611,26 @@ Common arguments: ``` +### Webserver mode - docker + +You can also use webserver mode via docker. +Starting a one-off container requires the configuration of the port explicitly, as ports are not exposed by default. +You can use `docker-compose run --rm -p 127.0.0.1:8080:8080 freqtrade webserver` to start a one-off container that'll be removed once you stop it. This assumes that port 8080 is still available and no other bot is running on that port. + +Alternatively, you can reconfigure the docker-compose file to have the command updated: + +``` yml + command: > + webserver + --config /freqtrade/user_data/config.json +``` + +You can now use `docker-compose up` to start the webserver. +This assumes that the configuration has a webserver enabled and configured for docker (listening port = `0.0.0.0`). + +!!! Tip + Don't forget to reset the command back to the trade command if you want to start a live or dry-run bot. + ## Show previous Backtest results Allows you to show previous backtest results.