Speedtest Tracker runs scheduled Ookla Speedtest CLI checks, stores the results, and presents them in a web UI. Version 2 is a Go service with a Nuxt frontend; it is a rewrite of the previous Laravel/React application.
Ookla's EULA and privacy agreement must be accepted before the application will start.
- Scheduled speed tests using a cron expression, plus on-demand runs from the UI or API.
- A static Nuxt web UI served by the Go application.
- SQLite and PostgresSQL database support
- Paginated results, latest-result, and time-series API endpoints.
- Generated OpenAPI schema and Swagger UI.
- Prometheus metrics, including a native histogram of Speedtest duration.
- OpenTelemetry tracing support.
- Optional OpenID Connect (OIDC) authentication.
- Optional current weather for speedtest results, with historical backfill and chart overlays.
For a simple deployment, use SQLite with a persistent Docker volume. Create an empty directory and add this compose.yaml file:
services:
app:
image: ghcr.io/henrywhitaker3/speedtest-tracker:v2
restart: unless-stopped
ports:
- "8080:8080"
env_file: .env
environment:
APP_URL: "https://speedtest.example.org"
ACCEPT_EULA: "true"
DB_DRIVER: sqlite
DB_URL: /data/speedtest-tracker.db
volumes:
- speedtest-tracker:/data
volumes:
speedtest-tracker:Create a .env file beside it with a private runtime key:
RUNTIME_PSK=replace-with-the-output-of-openssl-rand-hex-32For example:
openssl rand -hex 32Then start the application:
docker compose up -dOpen http://localhost:8080. The SQLite database is stored in the speedtest-tracker Docker volume and survives container recreation.
To stop the stack without removing its data:
docker compose downThe repository's docker-compose.yaml starts PostgreSQL and Jaeger too; it is intended for local development.
Configuration is read from environment variables (and a local .env file when running the binary directly). See the full configuration reference, including weather setup and historical backfill, result retention, scheduled tests, notifications, and observability.
For optional OpenID Connect authentication setup, see Authentication.
To import results from a Speedtest Tracker v1 JSON backup, see Restore a v1 backup.
The project uses mise to provision the backend tooling. The frontend has its own frontend/mise.toml for Node.js and pnpm.
mise install
cd frontend
mise install
mise exec -- pnpm install --frozen-lockfile
cd ..
mise run build-uiCreate a local .env file:
ACCEPT_EULA=true
RUNTIME_PSK=replace-with-a-random-value
APP_UI_DIR=frontend/.output/public
DB_DRIVER=sqlite
DB_URL=speedtest-tracker.dbStart the application and its development dependencies:
mise run serveFor iterative frontend development, run the Nuxt development server separately:
cd frontend
mise run uiThe frontend API base URL defaults to http://localhost:8080. Generate its TypeScript client from the running service with:
cd frontend
mise run clientRun backend tests with:
mise run testThe Dockerfile builds the Nuxt UI first, copies its static output to /ui, then builds the Go binary into a small non-root runtime image.
docker build -t speedtest-tracker:local .The image expects a database and the configuration described above. Use the supplied Compose stack when you need a ready-to-run PostgreSQL deployment.
This branch is a new implementation. The v1 Laravel/React configuration, authentication, notification, and external-service integration instructions do not apply to v2. v1 JSON result backups can be imported using the restore process.