forked from waltzofpearls/healthstats-collector
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
36 lines (29 loc) · 727 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
single_run_image = healthstats
cron_image = healthstats-cron
cron_container = healthstats-cron
all: run
mon:
docker-compose up -d prometheus pushgateway grafana
run:
docker build -t $(single_run_image) .
docker run --rm \
--name healthstats \
--network="healthstats-collector_monitor-net" \
--env-file .env \
$(single_run_image)
cron:
docker-compose up -d
off:
docker-compose down
clean:
docker-compose down
docker volume rm healthstats-collector_grafana_data
docker volume rm healthstats-collector_prometheus_data
dev:
docker build -t $(single_run_image) .
docker run -it --rm \
--name healthstats \
--env-file .env \
-v $(PWD):/healthstats \
-w /healthstats \
$(single_run_image) /bin/bash