-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose-dev-df.yaml
94 lines (88 loc) · 2.6 KB
/
docker-compose-dev-df.yaml
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
version: "3.3"
services:
# zookeeper for CB-Dragonfly
cb-dragonfly-zookeeper:
image: wurstmeister/zookeeper
container_name: cb-dragonfly-zookeeper
ports:
- 2181:2181
restart: always
# Kafka for CB-Dragonfly
cb-dragonfly-kafka:
image: wurstmeister/kafka:2.12-2.4.1
container_name: cb-dragonfly-kafka
environment:
KAFKA_ADVERTISED_HOST_NAME: cb-dragonfly-kafka
KAFKA_PORT: 9092
KAFKA_ZOOKEEPER_CONNECT: cb-dragonfly-zookeeper:2181
KAFKA_DELETE_TOPIC_ENABLE: "true"
# 1 hours (delete logs)
KAFKA_LOG_RETENTION_HOURS: 1
# 500 MB
KAFKA_LOG_RETENTION_BYTES: 524288000
# 250 MB
KAFKA_LOG_SEGMENT_BYTES: 262144000
# 10 min (check interval)
KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS: 600000
KAFKA_MESSAGE_TIMESTAMP_TYPE: LogAppendTime
KAFKA_LOG_MESSAGE_TIMESTAMP_TYPE: LogAppendTime
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 9092:9092
restart: always
# InfluxDB for CB-Dragonfly
cb-dragonfly-influxdb:
image: influxdb:1.8-alpine
container_name: cb-dragonfly-influxdb
ports:
- 28086:8086
- 28088:8088
environment:
- PRE_CREATE_DB=cbmon
- INFLUXDB_DB=cbmon
- INFLUXDB_ADMIN_USER=cbmon
- INFLUXDB_ADMIN_PASSWORD=password
- INFLUXDB_HTTP_AUTH_ENABLED=true
restart: always
# Kapacitor for CB-Dragonfly
cb-dragonfly-kapacitor:
image: kapacitor:1.5
container_name: cb-dragonfly-kapacitor
ports:
- 29092:9092
environment:
- KAPACITOR_HOSTNAME=cb-dragonfly-kapacitor
- KAPACITOR_INFLUXDB_0_URLS_0=http://cb-dragonfly-influxdb:8086
- KAPACITOR_INFLUXDB_0_USERNAME=cbmon
- KAPACITOR_INFLUXDB_0_PASSWORD=password
depends_on:
- cb-dragonfly-influxdb
restart: always
# Chronograf for CB-Dragonfly
cb-dragonfly-chronograf:
image: chronograf:1.8.4-alpine
container_name: cb-dragonfly-chronograf
ports:
- 8888:8888
command:
- --influxdb-url=http://cb-dragonfly-influxdb:8086
- --influxdb-username=cbmon
- --influxdb-password=password
- --kapacitor-url=http://cb-dragonfly-kapacitor:9092
- --kapacitor-username=cbmon
- --kapacitor-password=password
depends_on:
- cb-dragonfly-zookeeper
- cb-dragonfly-kafka
- cb-dragonfly-influxdb
- cb-dragonfly-kapacitor
cb-dragonfly-kafdrop:
image: obsidiandynamics/kafdrop
container_name: kafdrop
ports:
- 9000:9000
environment:
KAFKA_BROKERCONNECT: "cb-dragonfly-kafka:9092"
JVM_OPTS: "-Xms128M -Xmx256M"
restart: always