docker-bits/lsio/librespeed/docker-run.sh

22 lines
1.3 KiB
Bash
Raw Normal View History

2021-04-10 10:16:29 +00:00
# Librespeed is a very lightweight Speedtest implemented in Javascript, using
# XMLHttpRequest and Web Workers. No Flash, No Java, No Websocket, No Bullshit.
source ./.env
docker run -d \
--name=librespeed \
-e PUID=${PUID:-1024} `# for GroupID` \
-e PGID=${PGID:-100} `# for UserID` \
2021-04-13 00:58:58 +00:00
-e TZ=${TZ:-Europe/Amsterdam} `# Specify a timezone to use for example Europe/Amsterdam` \
2021-04-10 10:16:29 +00:00
-e PASSWORD=PASSWORD `# Set the password for the results database.` \
-e CUSTOM_RESULTS=false `# optional` `# (optional) set to `true` to enable custom results page in `/config/www/results/index.php`.` \
-e DB_TYPE=sqlite `# optional` `# Defaults to `sqlite`, can also be set to `mysql` or `postgresql`.` \
-e DB_NAME=DB_NAME `# optional` `# Database name. Required for mysql and pgsql.` \
-e DB_HOSTNAME=DB_HOSTNAME `# optional` `# Database address. Required for mysql and pgsql.` \
-e DB_USERNAME=DB_USERNAME `# optional` `# Database username. Required for mysql and pgsql.` \
-e DB_PASSWORD=DB_PASSWORD `# optional` `# Database password. Required for mysql and pgsql.` \
-e DB_PORT=DB_PORT `# optional` `# Database port. Required for mysql.` \
-p 80:80 `# web gui` \
-v ${BASEDIR:-/volume1/docker}/librespeed/config:/config `# Contains all relevant configuration files.` \
--restart unless-stopped \
ghcr.io/linuxserver/librespeed