2
This commit is contained in:
parent
7eb26fd5fa
commit
69f7774a6c
@ -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
9
docker-compose.yml
Normal 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
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user