BotPings: AI Agent Alerts
Download on the App Store
Download on the App Store

Check in from Docker and Docker Compose jobs

Monitor a Docker or Compose job through BotPings. Keep its private check-in URL on the scheduler and report the container’s exit status.

Docker · Docker Compose · 3 min · Servers and scripts

Before you start

Use a job container that exits when the work is complete. Save its BotPings check-in URL in a protected variable, BOTPINGS_CHECK_IN_URL, on the host running the scheduler.

Steps

Run the container as a one-off job

Replace backup with your Compose service. For a standalone job, use docker run --rm with the job’s image in place of the compose command.

Shell
if docker compose run --rm backup; then
  curl -fsS --max-time 15 "$BOTPINGS_CHECK_IN_URL"
else
  status=$?
  curl -fsS --max-time 15 "$BOTPINGS_CHECK_IN_URL/fail" || true
  exit "$status"
fi

Schedule the wrapper

Have the host run the wrapper on the same schedule configured for the check-in. Allow enough time for image startup and backup.

Confirm both paths

Use a disposable test job that succeeds, then one that fails. Keep both requests on the same test check-in.

Test it

Look for Last check-in after success and a separate alert after explicit failure.

If it doesn’t work

  • The scheduler cannot run Docker. Check which user owns the job and which Docker context it uses.
  • Compose cannot find the service. Run the wrapper from the project directory or specify the compose file.
  • No check-in arrives. Check the host connection and the private URL.

Related guides

Checked with BotPings 1.0 in a local test environment, November 2026.