dockerize and carry on
This commit is contained in:
parent
fc2ea59ce3
commit
3ab2025f9b
6
Dockerfile
Normal file
6
Dockerfile
Normal 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
Normal file
11
compose.yml
Normal 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
|
Loading…
x
Reference in New Issue
Block a user