-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
56 lines (43 loc) · 2.01 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
COMPOSE = docker compose -f infrastructure/docker-compose/common.yml
.PHONY: all-start all-down es-up es-down kafka-up kafka-down redis-up redis-down logstash-up logstash-down
all-start:
$(COMPOSE) \
-f infrastructure/docker-compose/kafka/zookeeper.yml \
-f infrastructure/docker-compose/kafka/kafka_cluster.yml \
-f infrastructure/docker-compose/connect/connect.yml \
-f infrastructure/docker-compose/es/docker-compose.yml \
-f infrastructure/docker-compose/redis/redis.yml \
-f infrastructure/docker-compose/logstash/logstash.yml up -d
all-down:
$(COMPOSE) \
-f infrastructure/docker-compose/kafka/zookeeper.yml \
-f infrastructure/docker-compose/kafka/kafka_cluster.yml \
-f infrastructure/docker-compose/es/docker-compose.yml \
-f infrastructure/docker-compose/redis/redis.yml \
-f infrastructure/docker-compose/logstash/logstash.yml down -v
es-up:
$(COMPOSE) -f infrastructure/docker-compose/es/docker-compose.yml up -d
es-down:
$(COMPOSE) -f infrastructure/docker-compose/es/docker-compose.yml down
kafka-up:
$(COMPOSE) -f infrastructure/docker-compose/kafka/zookeeper.yml \
-f infrastructure/docker-compose/kafka/kafka_cluster.yml up -d
kafka-down:
$(COMPOSE) -f infrastructure/docker-compose/kafka/zookeeper.yml \
-f infrastructure/docker-compose/kafka/kafka_cluster.yml down -v
connect-up:
$(COMPOSE) -f infrastructure/docker-compose/kafka/zookeeper.yml \
-f infrastructure/docker-compose/kafka/kafka_cluster.yml \
-f infrastructure/docker-compose/connect/connect.yml up -d
connect-down:
$(COMPOSE) -f infrastructure/docker-compose/kafka/zookeeper.yml \
-f infrastructure/docker-compose/kafka/kafka_cluster.yml \
-f infrastructure/docker-compose/connect/connect.yml down
redis-up:
$(COMPOSE) -f infrastructure/docker-compose/redis/redis.yml up -d
redis-down:
$(COMPOSE) -f infrastructure/docker-compose/redis/redis.yml down
logstash-up:
$(COMPOSE) -f infrastructure/docker-compose/logstash/logstash.yml up -d
logstash-down:
$(COMPOSE) -f infrastructure/docker-compose/logstash/logstash.yml down