From 69f7774a6c4c683507c8dc2c619af6fee7dbfb17 Mon Sep 17 00:00:00 2001 From: Eliezer Croitoru Date: Fri, 1 Nov 2024 14:49:36 +0200 Subject: [PATCH] 2 --- Dockerfile | 2 ++ docker-compose.yml | 9 +++++++++ supervisord.conf | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile index d4d41ca..2228ad9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,8 @@ RUN apk update && apk add --no-cache supervisor && mkdir -p /opt/blackbox_export ADD build-dir/${TARGETOS}/${TARGETARCH}/blackbox_exporter /opt/blackbox_exporter/ +ADD blackbox.yml /opt/blackbox_exporter/etc/blackbox.yml + ADD supervisord.conf /etc/supervisord.conf ADD start-blackbox.sh /start-blackbox.sh diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..33829d1 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +services: + blackbox-exporter: + container_name: blackbox_exporter + ports: + - 9115:9115 + image: elicro/blackbox_exporter:latest + environment: + - TZ=Asia/Jerusalem + restart: unless-stopped diff --git a/supervisord.conf b/supervisord.conf index 0c6f9a7..261ac70 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -15,7 +15,7 @@ minprocs=200 [program:blackbox] command=/bin/sh /start-blackbox.sh -directory=/data +directory=/opt/blackbox_exporter user=root autostart=true autorestart=true