mirror of
https://github.com/prometheus-community/smartctl_exporter.git
synced 2024-11-23 01:43:07 +01:00
Merge pull request #133 from nazar-pc/patch-1
Example of running with Docker
This commit is contained in:
commit
a1e81266a7
1 changed files with 15 additions and 0 deletions
15
README.md
15
README.md
|
@ -57,3 +57,18 @@ This exporter supports TLS and basic authentication.
|
||||||
To use TLS and/or basic authentication, you need to pass a configuration file
|
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
|
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).
|
[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"
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue