icinga2-container/Makefile

18 lines
428 B
Makefile

all: build
build:
docker build -t monitoring .
run: build
docker run --rm -ti \
-v influxdb-data:/var/lib/influxdb/data \
-v influxdb-meta:/var/lib/influxdb/meta \
-v postgresql:/var/lib/postgresql \
-v grafana-lib:/var/lib/grafana \
-v grafana-etc:/etc/grafana \
-v icinga2-etc:/etc/icinga2 \
-v icinga2-lib:/var/lib/icinga2 \
-v icingaweb2-etc:/etc/icingaweb2 \
-v ssmtp-etc:/etc/ssmtp \
monitoring sh