]> Piment Noir Git Repositories - freqai-strategies.git/commitdiff
docs: document docker image update script usage
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 16 Nov 2025 21:56:39 +0000 (22:56 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 16 Nov 2025 21:56:39 +0000 (22:56 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
README.md

index 1512060f289068b29711bf1112132accab57bea2..77db1ffa6036f61fcfb99090eabd8f89e43561fc 100644 (file)
--- a/README.md
+++ b/README.md
@@ -128,20 +128,20 @@ The rewarding logic and tunables are documented in the [reward space analysis](.
 
 ## Common workflows
 
-List running compose services and the containers they created:
+**List running compose services and the containers they created:**
 
 ```shell
 docker compose ps
 ```
 
-Enter a running service:
+**Enter a running service:**
 
 ```shell
 # use the compose service name (e.g. "freqtrade")
 docker compose exec freqtrade /bin/sh
 ```
 
-View logs:
+**View logs:**
 
 ```shell
 # service logs (compose maps service -> container(s))
@@ -151,12 +151,36 @@ docker compose logs -f freqtrade
 docker logs -f freqtrade-quickadapter
 ```
 
-Stop and remove the compose stack:
+**Stop and remove the compose stack:**
 
 ```shell
 docker compose down
 ```
 
+**Automatically update Freqtrade Docker images:**
+
+```shell
+cd ReforceXY  # or quickadapter
+cp ../scripts/docker-upgrade.sh .
+./docker-upgrade.sh
+```
+
+The script checks for new Freqtrade image versions on Docker Hub, rebuilds and restarts containers if updates are found, sends Telegram notifications (if configured), and cleans up unused images.
+
+_Configuration and environment variables:_
+
+| Variable            | Default                                  | Description                          |
+| ------------------- | ---------------------------------------- | ------------------------------------ |
+| FREQTRADE_CONFIG    | `./user_data/config.json`                | Freqtrade configuration file path    |
+| LOCAL_DOCKER_IMAGE  | `reforcexy-freqtrade`                    | Local image name                     |
+| REMOTE_DOCKER_IMAGE | `freqtradeorg/freqtrade:stable_freqairl` | Freqtrade image to track for updates |
+
+_Cronjob setup (daily check at 3:00 AM):_
+
+```cron
+0 3 * * * cd /path/to/freqai-strategies/ReforceXY && ./docker-upgrade.sh >> user_data/logs/docker-upgrade.log 2>&1
+```
+
 ---
 
 ## Note