-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose-df-only.yaml
128 lines (123 loc) · 3.92 KB
/
docker-compose-df-only.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
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
# Important: Need to modify ../conf/cb-dragonfly/conf.yaml
# monitoring.deploy_type = "compose" ==> monitoring.deploy_type = "dev"
version: "3.3"
services:
# CB-Dragonfly
cb-dragonfly:
image: cloudbaristaorg/cb-dragonfly:0.8.0
container_name: cb-dragonfly
volumes:
- ./conf/cb-dragonfly/:/go/src/github.com/cloud-barista/cb-dragonfly/conf/
- ./data/cb-dragonfly/meta_db/:/go/src/github.com/cloud-barista/cb-dragonfly/meta_db/
- ./data/cb-dragonfly/log/:/go/src/github.com/cloud-barista/cb-dragonfly/log/
ports:
- 0.0.0.0:9090:9090
- 0.0.0.0:9999:9999
depends_on:
# - cb-restapigw
- cb-dragonfly-zookeeper
- cb-dragonfly-kafka
- cb-dragonfly-influxdb
- cb-dragonfly-kapacitor
# environment:
# - CBSTORE_ROOT=/go/src/github.com/cloud-barista/cb-dragonfly
# - CBLOG_ROOT=/go/src/github.com/cloud-barista/cb-dragonfly
# - CBMON_ROOT=/go/src/github.com/cloud-barista/cb-dragonfly
# - DRAGONFLY_INFLUXDB_URL=cb-dragonfly-influxdb:8086
# restart: always
security_opt:
- no-new-privileges
# networks:
# cb-dragonfly:
# aliases:
# - cb-dragonfly
# InfluxDB for CB-Dragonfly
cb-dragonfly-influxdb:
image: influxdb:1.8-alpine
container_name: cb-dragonfly-influxdb
ports:
- 0.0.0.0:28086:8086
- 0.0.0.0: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
# networks:
# cb-dragonfly:
# aliases:
# - cb-dragonfly-influxdb
# zookeeper for CB-Dragonfly
cb-dragonfly-zookeeper:
image: wurstmeister/zookeeper
container_name: cb-dragonfly-zookeeper
ports:
- 0.0.0.0:2181:2181
# restart: always
# networks:
# cb-dragonfly:
# aliases:
# - cb-dragonfly-zookeeper
# 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"
KAFKA_LOG_RETENTION_HOURS: 1 # 1 hours (delete logs)
KAFKA_LOG_RETENTION_BYTES: 524288000 # 500 MB
KAFKA_LOG_SEGMENT_BYTES: 262144000 # 250 MB
KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS: 600000 # 10 min (check interval)
KAFKA_MESSAGE_TIMESTAMP_TYPE: LogAppendTime
KAFKA_LOG_MESSAGE_TIMESTAMP_TYPE: LogAppendTime
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 0.0.0.0:9092:9092
# restart: always
# networks:
# cb-dragonfly:
# aliases:
# - cb-dragonfly-kafka
# Kapacitor for CB-Dragonfly
cb-dragonfly-kapacitor:
image: kapacitor:1.5
container_name: cb-dragonfly-kapacitor
ports:
- 0.0.0.0: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
# networks:
# cb-dragonfly:
# aliases:
# - cb-dragonfly-kapacitor
# 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