# Health Check

Using the health check URL you can test to make sure the application is up and working. The URL `/api/healthcheck` will response with a 200 HTTP response code and a JSON message.

### Health Check Endpoint

```bash
curl APP_URL/api/healthcheck
```

You can also add this to your Docker Compose file so the Docker service can monitor that the container has started successfully.

```yaml
healthcheck:
    test: curl -fSs APP_URL/api/healthcheck | jq -r .message || exit 1
    interval: 10s
    retries: 3
    start_period: 30s
    timeout: 10s
```

### Response

```json
Speedtest Tracker is running!
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.speedtest-tracker.dev/other/health-check.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
