We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e7df58 commit f2606b0Copy full SHA for f2606b0
Dockerfile
@@ -0,0 +1,12 @@
1
+FROM alpine:3.12
2
+
3
+WORKDIR /usr/src
4
5
+RUN apk update; \
6
+ apk add --no-cache python3 py3-pip smartmontools; \
7
+ python3 -m pip install prometheus_client;
8
9
+ADD smartprom.py .
10
11
+EXPOSE 9902
12
+ENTRYPOINT "./smartprom.py"
docker-compose.yml
@@ -0,0 +1,8 @@
+version: '3'
+services:
+ smartctl-metrics:
+ build: ./
+ restart: unless-stopped
+ privileged: true
+ ports:
+ - 9902:9902
0 commit comments