diff --git a/docs/configuration.md b/docs/configuration.md index fe220403d..d5d53860b 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -139,7 +139,7 @@ you run it in production mode. ### To switch your bot in production mode: 1. Edit your `config.json` file -2. Switch dry-run to false +2. Switch dry-run to false and don't forget to adapt your database URL if set ```json "dry_run": false, ``` diff --git a/docs/installation.md b/docs/installation.md index 850b2c255..2fd40e451 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -162,10 +162,10 @@ docker run -d \ -v /etc/localtime:/etc/localtime:ro \ -v ~/.freqtrade/config.json:/freqtrade/config.json \ -v ~/.freqtrade/tradesv3.sqlite:/freqtrade/tradesv3.sqlite \ - freqtrade + freqtrade --db-url sqlite:///tradesv3.sqlite ``` - -If you are using `dry_run=True` it's not necessary to mount `tradesv3.sqlite`, but you can mount `tradesv3.dryrun.sqlite` if you plan to use the dry run mode with the param `--dry-run-db`. +NOTE: db-url defaults to `sqlite:///tradesv3.sqlite` but it defaults to `sqlite://` if `dry_run=True` is being used. +To override this behaviour use a custom db-url value: i.e.: `--db-url sqlite:///tradesv3.dryrun.sqlite` ### 6. Monitor your Docker instance