App answers, but another service of the compose stack keeps restarting

The application is restarting, not running. Docker reports tianji (running, last exit 0, restarted 1 time). It may answer between restarts, but it does not stay up. Read the container output with container_service_logs; the reason it exits is there. A process that exits 0 is restarted too, e.g. a command ending in a shell with no TTY.

Seen85 times · 2 variants
WhereDocker Compose, Laravel

Why it happens

The site responds, but one service in the stack restarts in a loop: a finished one-time job is restarted, a service lacks required settings, or it needs access the hosting does not give (such as the Docker socket).

What the log looks like

Deploy log
Detected project type: LaravelUsing strategy: laravelKeeping runtime services from compose: db, node...Detected application port: 8000Application health check: HTTP 302Docker reports node — it keeps restartingDependency health: failed

Try PanelAlpha Engine yourself.

The easiest way to turn your server into a safe, controlled environment for your AI agent. Deploy, manage and maintain any project from Claude Code, Cursor, Codex or any other MCP client. Open source under Apache 2.0, free to run.

Requires Ubuntu 24.04 or 26.04 · 2 GB RAM · 1 CPURead the documentation