|
|
|
# [Librespeed](https://github.com/librespeed/speedtest) is a very lightweight
|
|
|
|
# Speedtest implemented in Javascript, using XMLHttpRequest and Web Workers. No
|
|
|
|
# Flash, No Java, No Websocket, No Bullshit.
|
|
|
|
|
|
|
|
---
|
|
|
|
version: "2.1"
|
|
|
|
services:
|
|
|
|
librespeed:
|
|
|
|
image: ghcr.io/linuxserver/librespeed
|
|
|
|
container_name: librespeed
|
|
|
|
environment:
|
|
|
|
# for GroupID
|
|
|
|
- PUID=${PUID:-1024}
|
|
|
|
# for UserID
|
|
|
|
- PGID=${PGID:-100}
|
|
|
|
# Specify a timezone to use for example Europe/Amsterdam
|
|
|
|
- TZ=${TZ:-Europe/Amsterdam}
|
|
|
|
# Set the password for the results database.
|
|
|
|
- PASSWORD=PASSWORD
|
|
|
|
# (optional) set to `true` to enable custom results page in `/config/www/results/index.php`.
|
|
|
|
- CUSTOM_RESULTS=false # optional
|
|
|
|
# Defaults to `sqlite`, can also be set to `mysql` or `postgresql`.
|
|
|
|
- DB_TYPE=sqlite # optional
|
|
|
|
# Database name. Required for mysql and pgsql.
|
|
|
|
- DB_NAME=DB_NAME # optional
|
|
|
|
# Database address. Required for mysql and pgsql.
|
|
|
|
- DB_HOSTNAME=DB_HOSTNAME # optional
|
|
|
|
# Database username. Required for mysql and pgsql.
|
|
|
|
- DB_USERNAME=DB_USERNAME # optional
|
|
|
|
# Database password. Required for mysql and pgsql.
|
|
|
|
- DB_PASSWORD=DB_PASSWORD # optional
|
|
|
|
# Database port. Required for mysql.
|
|
|
|
- DB_PORT=DB_PORT # optional
|
|
|
|
volumes:
|
|
|
|
# Contains all relevant configuration files.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/librespeed/config:/config
|
|
|
|
ports:
|
|
|
|
# web gui
|
|
|
|
- 80:80
|
|
|
|
restart: unless-stopped
|