Hostinger Black Friday deal: VPS hosting up to 70% off
Ad

Try describing what you need:

LibreSpeed logo

LibreSpeed

★ 15.3k
GNU Lesser General Public License v3.0Open Source — No Paywall14 Containers — 14 containers — heavy hosting footprintSource · DockerNeeds Postgres18 active committers (12mo)

About

LibreSpeed is a lightweight, self-hosted internet speed testing application for people and organizations that want to measure connection performance using their own server. Its browser interface is...

Community Ratings

No ratings yet

Features

  • Download speed measurement
  • Upload speed measurement
  • Ping and jitter measurement
  • Optional IP address, ISP, and server-distance information
  • Optional telemetry
  • Optional results sharing
  • Multiple test points
  • Connection stability testing
  • Latency charts, loss tracking, and threshold alerts
  • CSV export of stability-test samples

Details

Last Updated
Nov 28, 2026
Created
Mar 4, 2016
Install Methods
sourcedocker
Requirements
Apache 2, nginx, or IIS web serverPHP 5.4 or newer for the PHP backendMariaDB or MySQL to store test results (optional; Microsoft SQL Server, PostgreSQL, and SQLite are also supported)A fast internet connection
Backup & Export
CSV-export
Deployment

Deployment: Docker Compose ✓14 Containers — heavy hosting footprintRuns as 14 containers

Run LibreSpeed yourself

Pick how much you want to manage.

3 more ways to host

Some links earn us a commission. netcup pays us one and is our preferred VPS host. Hostinger is a paid sponsor and is listed first.

Is this your project? Sponsor a listing

Run LibreSpeed with Docker Compose

Compose file from the LibreSpeed project repository.

14 services · database: postgres · infra: postgres, mysql · 2 unclassified (server, alpine)

no resource limits declared

needs persistent storage (5 volumes)

docker/test/docker-compose.yml · @ 34dcc46 · scanned Nov 26, 2026

## this is a docker compose file used to test all scenarios
## do not use it in production
x-shared:
  speedtest-service: &speedtest-service
    environment:
      - PASSWORD=gimmeTheStats1337
      - GDPR_EMAIL=test@example.com
      - ENABLE_ID_OBFUSCATION=true
      - MODE=standalone
      - REDACT_IP_ADDRESSES=true
      - TELEMETRY=true

services:
  ###################### POSTGRESQL ################################
  pg:
    image: postgres:alpine
    environment:
      POSTGRES_PASSWORD: Not4SecureProduction
      POSTGRES_USER: librespeed
    volumes:
      # mount init script from source to create database tables
      - ../../results/telemetry_postgresql.sql:/docker-entrypoint-initdb.d/01-init.sql

  speedtest-debian-pg:
    build:
      context: ../..
      dockerfile: Dockerfile
    environment: &env_vars_pg
      - PASSWORD=gimmeTheStats1337
      - DB_HOSTNAME=pg
      - DB_NAME=librespeed
      - DB_PASSWORD=Not4SecureProduction
      - DB_TYPE=postgresql
      - DB_USERNAME=librespeed
      - GDPR_EMAIL=test@example.com
      - ENABLE_ID_OBFUSCATION=true
      - MODE=standalone
      - REDACT_IP_ADDRESSES=true
      - TELEMETRY=true
    ports:
      - 9123:8080

  speedtest-alpine-pg:
    build:
      context: ../..
      dockerfile: Dockerfile.alpine
    environment: *env_vars_pg
    ports:
      - 9124:8080

  ####################### MYSQL ##############################

  mysql:
    image: mysql:lts
    environment:
      MYSQL_ROOT_PASSWORD: Not4SecureProduction
      MYSQL_USER: librespeed
      MYSQL_PASSWORD: Not4SecureProduction
      MYSQL_DATABASE: librespeed
    volumes:
      # mount init script from source to create database tables
      - ../../results/telemetry_mysql.sql:/docker-entrypoint-initdb.d/01-init.sql

  speedtest-debian-mysql:
    # check at http://localhost:9125/results/sanitycheck.php
    build:
      context: ../..
      dockerfile: Dockerfile
    environment: &env_vars_mysql
      - PASSWORD=gimmeTheStats1337
      - DB_HOSTNAME=mysql
      - DB_NAME=librespeed
      - DB_PASSWORD=Not4SecureProduction
      - DB_TYPE=mysql
      - DB_USERNAME=librespeed
      - GDPR_EMAIL=test@example.com
      - ENABLE_ID_OBFUSCATION=true
      - MODE=standalone
      - REDACT_IP_ADDRESSES=true
      - TELEMETRY=true
    ports:
      - 9125:8080
  speedtest-alpine-mysql:
    build:
      context: ../..
      dockerfile: Dockerfile.alpine
    environment: *env_vars_mysql
    ports:
      - 9126:8080

  ####################### MSSQL ##############################

  mssql:
    image: mcr.microsoft.com/mssql/server:2022-latest
    environment:
      - ACCEPT_EULA=Y
      - SA_PASSWORD=Not4SecureProduction1337
      - MSSQL_PID=Express
    healthcheck:
      test:
        ["CMD-SHELL", "/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P $$SA_PASSWORD -C -Q 'SELECT 1' || exit 1"]
      interval: 10s
      retries: 5
      start_period: 30s

  mssql-init:
    image: mcr.microsoft.com/mssql/server:2022-latest
    depends_on:
      mssql:
        condition: service_healthy
    environment:
      - SA_PASSWORD=Not4SecureProduction1337
    volumes:
      - ../../results/telemetry_mssql.sql:/docker-entrypoint-initdb.d/01-init.sql:ro
    command: >
      bash -c '
        echo "Waiting for MSSQL to be ready...";
        until /opt/mssql-tools18/bin/sqlcmd -S mssql -U sa -P "$$SA_PASSWORD" -C -Q "SELECT 1"; do
          sleep 1;
        done;
        echo "Running init scripts...";
        for f in /docker-entrypoint-initdb.d/*.sql; do
          echo "Executing $$f...";
          /opt/mssql-tools18/bin/sqlcmd -S mssql -U sa -P "$$SA_PASSWORD" -C -i "$$f";
        done;
        echo "Initialization complete!";
      '

  speedtest-debian-mssql:
    build:
      context: ../..
      dockerfile: Dockerfile
    environment: &env_vars_mssql
      - PASSWORD=gimmeTheStats1337
      - DB_HOSTNAME=mssql
      - DB_NAME=librespeed
      - DB_PASSWORD=Not4SecureProduction1337
      - DB_TYPE=mssql
      - DB_USERNAME=sa
      - GDPR_EMAIL=test@example.com
      - ENABLE_ID_OBFUSCATION=true
      - MODE=standalone
      - REDACT_IP_ADDRESSES=true
      - TELEMETRY=true
    ports:
      - 9130:8080

  speedtest-alpine-mssql:
    build:
      context: ../..
      dockerfile: Dockerfile.alpine
    environment: *env_vars_mssql
    ports:
      - 9131:8080

  ################ SQLITE ####################################

  speedtest-debian-sqlite:
    # check at http://localhost:9125/results/sanitycheck.php
    build:
      context: ../..
      dockerfile: Dockerfile
    environment: &env_vars_sqlite
      - PASSWORD=gimmeTheStats1337
      - GDPR_EMAIL=test@example.com
      - ENABLE_ID_OBFUSCATION=true
      - MODE=standalone
      - REDACT_IP_ADDRESSES=true
      - TELEMETRY=true
    ports:
      - 9127:8080

  speedtest-alpine-sqlite:
    build:
      context: ../..
      dockerfile: Dockerfile.alpine
    environment: *env_vars_sqlite
    ports:
      - 9128:8080

  speedtest-alpine-sqlite-dual:
    <<: *speedtest-service
    build:
      context: ../..
      dockerfile: Dockerfile.alpine
    environment:
      - MODE=dual

    volumes:
      - ./servers.json:/servers.json:ro
    ports:
      - 9129:8080

  ##############  TEST CONTAINER  ###############################################################
  test-container:
    image: alpine
    depends_on:
      - pg
      - mysql
      - mssql-init
      - speedtest-alpine-mysql
      - speedtest-alpine-pg
      - speedtest-alpine-mssql
    volumes:
      - ./test-script.sh:/test-script.sh
    command:
      - sh
      - /test-script.sh

This file may be out of date. Check the LibreSpeed website for current setup steps.

Track your self-hosted stack

Bookmark software to try, rate tools you've used, and keep your collection in one place.

Metadata extracted from README on Nov 26, 2026

Alternatives to LibreSpeed

Speed Test by OpenSpeedTest™ logo

Speed Test by OpenSpeedTest™

3.9k
A free and open-source HTML5 network speed test tool that runs in a web browser and can be self-hosted on a static web server.
Network UtilitiesPermissive LicenseSelf Hosting Solutions
Details
MySpeed logo

MySpeed

3.1k
MySpeed is a speed test analysis tool that records and visualizes internet speed over time.
Network UtilitiesAnalytics ToolsAutomation Tools+3
Details
Speedtest Tracker logo

Speedtest Tracker

6.1k
A self-hosted application that monitors the performance and uptime of an internet connection.
Network UtilitiesPermissive LicenseStatus Pages+4
Details

Related Software

GoatCounter logo

GoatCounter

6.2k
GoatCounter is an open source, privacy-friendly web analytics platform for self-hosting or hosted use.
Analytics ToolsCopyleft LicenseSelf Hosting Solutions
Details
SIP3 logo

SIP3

VoIP troubleshooting and monitoring platform.
SIP CommunicationNetwork UtilitiesAnalytics Tools+2
Details
Chhoto URL logo

Chhoto URL

1.0k
A simple self-hosted URL shortener focused on simplicity and speed.
URL ShortenersPermissive LicenseSelf Hosting Solutions+1
Details
Mistborn logo

Mistborn

717
Virtual private cloud platform and WebUI that manages self hosted services.
Self Hosting SolutionsPermissive LicensePlatform as a Service+1
Details
ANALOG logo

ANALOG

55
A minimal self-hosted analytics tool.
Analytics ToolsPermissive LicenseSelf Hosting Solutions
Details
Gatus logo

Gatus

12.9k
Gatus is a developer-oriented health dashboard for monitoring services with health checks and alerting.
Status PagesPermissive LicenseNetwork Utilities+1
Details
WeTTY logo

WeTTY

5.5k
WeTTY provides browser-based terminal access over HTTP or HTTPS, using xterm.js and WebSockets to connect to a shell or SSH server.
Miscellaneous ToolsRemote AccessSelf Hosting Solutions+2
Details
WebHook Tester logo

WebHook Tester

557
A self-hosted webhook and HTTP request tester that generates unique URLs and lets users customize responses for debugging.
Testing ToolsAPI ManagementNetwork Utilities+2
6 Containers
Details