From 95665951049045bd3d4c349635c4f7d3de9db690 Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Fri, 7 Jul 2023 21:25:06 +0300 Subject: [PATCH] Example of running with Docker Signed-off-by: Nazar Mokrynskyi --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 94660d2..60a5611 100644 --- a/README.md +++ b/README.md @@ -54,3 +54,18 @@ This exporter supports TLS and basic authentication. To use TLS and/or basic authentication, you need to pass a configuration file using the `--web.config.file` parameter. The format of the file is described [in the exporter-toolkit repository](https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md). + +## Example of running in Docker + +Minimal functional `docker-compose.yml`: +```yaml +version: "3" + +services: + smartctl-exporter: + image: prometheuscommunity/smartctl-exporter + privileged: true + user: root + ports: + - "9633:9633" +```