From 3ab2025f9b9b3c21704a18cf925b27019dbcb95b Mon Sep 17 00:00:00 2001 From: VG Date: Sun, 26 May 2024 15:43:10 +0300 Subject: [PATCH] dockerize and carry on --- Dockerfile | 6 ++++++ compose.yml | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 Dockerfile create mode 100644 compose.yml 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