diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..26a01a3 --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..0e0c377 --- /dev/null +++ b/compose.yml @@ -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