Skip to content

Commit f2606b0

Browse files
committed
added Docker support
1 parent 6e7df58 commit f2606b0

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -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

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: '3'
2+
services:
3+
smartctl-metrics:
4+
build: ./
5+
restart: unless-stopped
6+
privileged: true
7+
ports:
8+
- 9902:9902

0 commit comments

Comments
 (0)