-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·57 lines (51 loc) · 1.13 KB
/
docker-compose.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
version: "3.8"
services:
kafka:
image: kafka_image:latest
container_name: kafka_container
restart: always
ports:
- "9093:9093"
environment:
- KRAFT_CONTAINER_HOST_NAME=kafka
- KRAFT_CREATE_TOPICS=topic-a,topic-b,topic-c
- KRAFT_PARTITIONS_PER_TOPIC=3
influxdb:
image: influxdb:2.1.1
container_name: influxdb
restart: always
environment:
- INFLUXDB_DB=influx
- INFLUXDB_ADMIN_USER=admin
- INFLUXDB_ADMIN_PASSWORD=admin
ports:
- '8086:8086'
volumes:
- influxdb_data:/var/lib/influxdb
grafana:
image: grafana/grafana
container_name: grafana-server
restart: always
depends_on:
- influxdb
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_INSTALL_PLUGINS=
links:
- influxdb
ports:
- '3000:3000'
volumes:
- grafana_data:/var/lib/grafana
consumer:
container_name: consumer_container
image: consumer_image
tty: true
privileged: true
depends_on:
- broker
- influxdb
volumes:
grafana_data: {}
influxdb_data: {}