From 16e0fb9bf4c275262d74b49c453c6ce50e6f5ae3 Mon Sep 17 00:00:00 2001 From: bt90 Date: Thu, 14 Jul 2022 17:08:12 +0200 Subject: [PATCH] Add basic docker compose example --- doc_docker.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/doc_docker.md b/doc_docker.md index 753fe02..a8cd69a 100755 --- a/doc_docker.md +++ b/doc_docker.md @@ -9,6 +9,34 @@ docker pull adolfintel/speedtest You will now have a new docker image called `adolfintel/speedtest`. + +## Docker Compose +To start the container using [docker compose](https://docs.docker.com/compose/) the following configuration can be used: + +```yml +version: '3.7' +services: + speedtest: + container_name: speedtest + image: adolfintel/speedtest + restart: always + environment: + MODE: standalone + #TITLE: "LibreSpeed" + #TELEMETRY: "false" + #ENABLE_ID_OBFUSCATION: "false" + #REDACT_IP_ADDRESSES: "false" + #PASSWORD: + #EMAIL: + #DISABLE_IPINFO: "false" + #DISTANCE: "km" + #WEBPORT: 80 + ports: + - "80:80" # webport mapping (host:container) +``` + +Please adjust the environment variables according to the intended operating mode. + ## Standalone mode If you want to install LibreSpeed on a single server, you need to configure it in standalone mode. To do this, set the `MODE` environment variable to `standalone`.