Example of running with Docker

Signed-off-by: Nazar Mokrynskyi <nazar@mokrynskyi.com>
This commit is contained in:
Nazar Mokrynskyi 2023-07-07 21:25:06 +03:00 committed by GitHub
parent 895bf1eeb3
commit 9566595104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 0 deletions

View File

@ -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"
```