-
Notifications
You must be signed in to change notification settings - Fork 18
/
docker-compose-infra.yml
161 lines (148 loc) · 3.42 KB
/
docker-compose-infra.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
version: '2.1'
services:
zookeeper:
image: confluentinc/cp-zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
volumes:
- zookeeper:/var/lib/zookeeper
networks:
- reactnet
kafka:
image: confluentinc/cp-kafka
ports:
- 9092:9092
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
KAFKA_NUM_PARTITIONS: 1
KAFKA_DEFAULT_REPLICATION_FACTOR: 1
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_DELETE_TOPIC_ENABLE: "true"
volumes:
- kafka:/var/lib/kafka
networks:
- reactnet
links:
- zookeeper
depends_on:
- zookeeper
ksql-server:
image: xmlking/ksql
ports:
- 9098:9098
networks:
- reactnet
links:
- kafka
depends_on:
- kafka
environment:
KSQL_CONFIG_DIR: "/etc/ksql"
KSQL_LOG4J_OPTS: "-Dlog4j.configuration=file:/etc/ksql/log4j.properties"
STREAMS_BOOTSTRAP_SERVERS: kafka:9092
entrypoint: 'ksql-server-start'
cassandra:
image: cassandra:latest
ports:
- 9042:9042
networks:
- reactnet
volumes:
- cassandra:/var/lib/cassandra
# - ${PWD}/infra/cassandra/data:/var/lib/cassandra
healthcheck:
test: ["CMD-SHELL", "[ $$(nodetool statusgossip) = running ]"]
interval: 30s
timeout: 10s
retries: 5
alertmanager:
image: prom/alertmanager
ports:
- 9093:9093
volumes:
- ./infra/alertmanager/config:/etc/alertmanager/
- alertmanager:/alertmanager
environment:
GMAIL_ACCOUNT: "[email protected]"
GMAIL_AUTH_TOKEN: "abcd"
command:
- '-config.file=/etc/alertmanager/config.yml'
- '-storage.path=/alertmanager'
networks:
- reactnet
prometheus:
image: prom/prometheus
ports:
- 9090:9090
volumes:
- ./infra/prometheus/config:/etc/prometheus/
- prometheus:/prometheus
command:
- '-config.file=/etc/prometheus/prometheus.yml'
- '-storage.local.path=/prometheus'
- '-alertmanager.url=http://alertmanager:9093'
networks:
- reactnet
links:
- alertmanager
depends_on:
- alertmanager
influxdb:
image: influxdb:1.2.4-alpine
ports:
- 8083:8083
- 8086:8086
- 8090:8090
environment:
- INFLUXDB_ADMIN_ENABLED=true
networks:
- reactnet
volumes:
- influxdb:/var/lib/influxdb
# - ./infra/influxdb/data:/var/lib/influxdb
# - ./infra/influxdb/conf/influxdb.conf:/etc/influxdb/influxdb.conf
grafana:
image: grafana/grafana:latest
ports:
- 3000:3000
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
networks:
- reactnet
volumes:
- grafana:/var/lib/grafana
links:
- influxdb
- prometheus
depends_on:
- influxdb
- prometheus
kafka-influxdb-pump:
image: microservices-observability/kafka-influxdb-service:0.1.0-SNAPSHOT
environment:
- SPRING_PROFILES_ACTIVE=docker
- INFLUXDB_URL=http://influxdb:8086
- INFLUXDB_BATCH_SIZE=100
networks:
- reactnet
links:
- kafka
- influxdb
depends_on:
- kafka
- influxdb
networks:
reactnet:
driver: bridge
volumes:
cassandra:
driver: local
zookeeper:
kafka:
influxdb:
grafana:
prometheus:
alertmanager: