diff --git a/docker/dockerfile/dev/init.sh b/docker/dockerfile/dev/init.sh index 34d3477..c65df4a 100644 --- a/docker/dockerfile/dev/init.sh +++ b/docker/dockerfile/dev/init.sh @@ -22,6 +22,10 @@ fi /data/${APPLICATION}/${APPLICATION} -cfg /data/${APPLICATION}/config/config.toml > /data/${APPLICATION}/log/run.log 2>&1 & -while true; do - sleep 1 -done \ No newline at end of file +sleep 30 + +while [[ true ]]; do + # 健康检查 + curl -f http://localhost:8080/api/healthcheck || exit 1 + sleep 120 +done \ No newline at end of file