This commit is contained in:
Eliezer Croitoru 2024-11-01 14:49:36 +02:00
parent 7eb26fd5fa
commit 69f7774a6c
3 changed files with 12 additions and 1 deletions

View File

@ -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 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 supervisord.conf /etc/supervisord.conf
ADD start-blackbox.sh /start-blackbox.sh ADD start-blackbox.sh /start-blackbox.sh

9
docker-compose.yml Normal file
View File

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

View File

@ -15,7 +15,7 @@ minprocs=200
[program:blackbox] [program:blackbox]
command=/bin/sh /start-blackbox.sh command=/bin/sh /start-blackbox.sh
directory=/data directory=/opt/blackbox_exporter
user=root user=root
autostart=true autostart=true
autorestart=true autorestart=true