dockerize and carry on

main
"Riku" 2024-05-26 15:43:10 +03:00
parent fc2ea59ce3
commit 3ab2025f9b
2 changed files with 17 additions and 0 deletions

6
Dockerfile 100644
View File

@ -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

11
compose.yml 100644
View File

@ -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