dockerize and carry on
parent
fc2ea59ce3
commit
3ab2025f9b
|
@ -0,0 +1,6 @@
|
||||||
|
FROM python:3.11
|
||||||
|
|
||||||
|
RUN pip install requests urllib3
|
||||||
|
ADD zte_exporter.py .
|
||||||
|
|
||||||
|
CMD python3 zte_exporter.py $PORT $IP $USERNAME $PASSWORD
|
|
@ -0,0 +1,11 @@
|
||||||
|
version: "3.8"
|
||||||
|
services:
|
||||||
|
zte-exporter:
|
||||||
|
image: vvkvvk/zte-exporter:latest
|
||||||
|
restart: unless-stopped
|
||||||
|
network_mode: host
|
||||||
|
environment:
|
||||||
|
- PORT=8082
|
||||||
|
- IP=192.168.8.1
|
||||||
|
- USERNAME=admin
|
||||||
|
- PASSWORD=1234
|
Loading…
Reference in New Issue