From 458b658adf692fa612d570ddda9a21dc95b55add Mon Sep 17 00:00:00 2001 From: angrycuban13 <39564898+angrycuban13@users.noreply.github.com> Date: Tue, 7 Jul 2020 20:45:22 -0500 Subject: [PATCH] Update README.md Adding "how to add using compose" because of https://www.reddit.com/r/organizr/comments/hn6mu4/speed_test_docker/ --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 136e602e..c18eb75b 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,31 @@ docker create \ henrywhitaker3/speedtest-tracker ``` +### Using Docker Compose + +```yml + speedtest: + container_name: speedtest + image: henrywhitaker3/speedtest-tracker:dev + ports: + - 8765:80 + volumes: + - /path/to/data:/config + environment: + - TZ= + - PGID= + - PUID= + - SLACK_WEBHOOK= + - BASE_PATH=/speedtest + - OOKLA_EULA_GDPR=true + logging: + driver: json-file + options: + max-file: 10 + max-size: 200k + restart: unless-stopped +``` + #### Parameters Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `:` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.