Use Python-alpine and add docker doc.

This commit is contained in:
NMC 2023-05-11 00:07:38 -04:00
parent b100542763
commit a135adc074
2 changed files with 26 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM python:3.9 FROM python:3.9-alpine
WORKDIR /app WORKDIR /app

View File

@ -6,7 +6,30 @@ Netgear LTE Modem Exporter
* Netgear LM1200 * Netgear LM1200
# Config Example
## Docker CLI
docker run -d --name lte-exporter \
-p 9877:9877 \
-e MODEM_HOST=192.168.5.1 \
-e MODEM_PASS=redtable654 \
ghcr.io/ncareau/netgear-lte-exporter:latest
## Docker Compose
lte-exporter:
image: ghcr.io/ncareau/netgear-lte-exporter:latest
container_name: lte-exporter
environment:
- MODEM_HOST=192.168.5.1
- MODEM_PASS=redtable654
ports:
- 9877:9877
restart: unless-stopped
# Thanks # Thanks
https://github.com/amelchio/eternalegypt * https://github.com/amelchio/eternalegypt
https://github.com/ickymettle/netgear_cm_exporter * https://github.com/ickymettle/netgear_cm_exporter