Fix the DOCKSTAT_LISTEN_PORT examples in the README.md

This commit is contained in:
Scott Wallace 2021-10-08 13:38:14 +01:00 committed by GitHub
parent 613e56c92a
commit 5a14cd5dbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@ container_inspect_downtime_alert_threshold{id="470e17a15751881cc0787f9aab6f1af00
* Requires access to the Docker socket (`/var/run/docker.sock`) * Requires access to the Docker socket (`/var/run/docker.sock`)
* The port `dockstat` listens on can be changed using the `DOCKSTAT_LISTEN_PORT` environment variable. Default: `8080` * The port `dockstat` listens on can be changed using the `DOCKSTAT_LISTEN_PORT` environment variable. Default: `8080`
e.g. `LISTEN_PORT=80 python3 dockstat.py` e.g. `DOCKSTAT_LISTEN_PORT=80 python3 dockstat.py`
# Docker # Docker
## Build ## Build
@ -94,7 +94,7 @@ services:
container_name: dockstat container_name: dockstat
environment: environment:
- TZ=Europe/London - TZ=Europe/London
- LISTEN_PORT=80 - DOCKSTAT_LISTEN_PORT=80
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
restart: unless-stopped restart: unless-stopped