Browse Source

Add docs for running using docker/docker-compose

pull/5/head
Lukas Wolfsteiner 4 years ago
committed by GitHub
parent
commit
6986685424
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      README.md

22
README.md

@ -35,6 +35,28 @@ Other changes:
In the configuration of the Fritzbox the option "Statusinformationen über UPnP übertragen" in the dialog "Heimnetz > In the configuration of the Fritzbox the option "Statusinformationen über UPnP übertragen" in the dialog "Heimnetz >
Heimnetzübersicht > Netzwerkeinstellungen" has to be enabled. Heimnetzübersicht > Netzwerkeinstellungen" has to be enabled.
### Using docker
First you have to build the container: `docker build --tag fritzbox-prometheus-exporter:latest .`
Then start the container:
```bash
$ docker run -e 'USERNAME=your_fritzbox_username' \
-e 'PASSWORD=your_fritzbox_password' \
-e 'GATEWAY_URL="http://192.168.0.1:49000"' \
-e 'LISTEN_ADDRESS="0.0.0.0:9042"' \
fritzbox-prometheus-exporter:latest
```
### Using docker-compose
Set your environment variables within the [docker-compose.yml](docker-compose.yml) file.
Then start up the container using `docker-compose up -d`.
### Using the binary
Usage: Usage:
$GOPATH/bin/fritzbox_exporter -h $GOPATH/bin/fritzbox_exporter -h

Loading…
Cancel
Save