dryrun.sh live.sh restart = always

This commit is contained in:
zhangkun9038@dingtalk.com 2026-01-04 22:06:34 +08:00
parent c487d6c965
commit 0592aff621
3 changed files with 3 additions and 1 deletions

View File

@ -7,7 +7,6 @@
"password": "c^-d:g;P2S9?Q#^",
"enable_ws": false,
"ccxt_config": {
"enableRateLimit": true,
"rateLimit": 500,
"options": {
"defaultType": "spot"

View File

@ -253,6 +253,7 @@ echo "正在启动新容器..." >&2
# 临时禁用 set -e以便捕获 docker run 的错误
set +e
docker run -d --rm \
--restart always \
--name "${CONTAINER_NAME}" \
-p 8080:8080 \
--add-host "www.okx.com:104.18.43.174" \

View File

@ -477,6 +477,7 @@ echo "docker-compose run --rm freqtrade hyperopt $PAIRS_FLAG \
--freqaimodel LightGBMRegressorMultiTarget \
--strategy $STRATEGY_CLASS_NAME \
--config /freqtrade/config_examples/$CONFIG_FILE \
--config /freqtrade/config_examples/hyperopt.json \
--config /freqtrade/templates/${PARAMS_NAME}.json \
--enable-protections \
--strategy-path /freqtrade/templates \
@ -489,6 +490,7 @@ echo "docker-compose run --rm freqtrade hyperopt $PAIRS_FLAG \
--fee 0.001"
docker-compose run --rm freqtrade hyperopt $PAIRS_FLAG \
--restart always \
--logfile /freqtrade/user_data/logs/freqtrade.log \
--freqaimodel LightGBMRegressorMultiTarget \
--strategy $STRATEGY_CLASS_NAME \