forked from anodot/daria
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
260 lines (238 loc) · 6.69 KB
/
docker-compose-dev.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
version: '3.1'
services:
dc:
build: streamsets
container_name: dc
ports:
- "18630:18630"
- "9999:9999"
restart: on-failure
volumes:
- ./sdc-data:/data
- ./certs:/home/certs
- ./test-datasets/test-directory-collector:/home/test-directory-collector
# environment:
# SDC_CONF_PARSER_LIMIT: 2048576
# SDC_CONF_RUNNER_THREAD_POOL_SIZE: "200"
# extra_hosts:
# - "daria-test2:10.0.0.28"
# creating second streamsets to run tests on multiple instances
dc2:
build: streamsets
container_name: dc2
ports:
- "18629:18630"
restart: on-failure
volumes:
- ./sdc-data2:/data
- ./certs:/home/certs
- ./test-datasets/test-directory-collector:/home/test-directory-collector
environment:
SDC_CONF_PRODUCTION_MAXBATCHSIZE: "50"
SDC_CONF_RUNNER_THREAD_POOL_SIZE: "2000"
agent:
build:
context: ./agent
dockerfile: Dockerfile.local
restart: always
container_name: anodot-agent
hostname: agent
environment:
STREAMSETS_USERNAME: 'admin'
STREAMSETS_PASSWORD: 'admin'
STREAMSETS_URL: 'http://dc:18630'
LOG_FILE_PATH: '/var/log/agent.log'
ENV_PROD: 'false'
AGENT_DB_HOST: 'db'
AGENT_DB_USER: 'agent'
AGENT_DB_PASSWORD: 'agent'
GIT_SHA1: 'local'
AGENT_URL: 'http://anodot-agent'
PGPASSWORD: 'agent'
depends_on:
- dc
- db
volumes:
- ./agent/backup-data:/usr/src/app/backup-data
- ./agent/output:/output
- ./agent:/usr/src/app
# - ./scripts:/usr/src/app/scripts
- ./test-datasets:/home
ports:
- 80:80
db:
container_name: db
image: postgres:9.6.19
restart: always
environment:
POSTGRES_USER: agent
POSTGRES_PASSWORD: agent
POSTGRES_DB: agent
ports:
- 5432:5432
volumes:
- /var/lib/postgresql/data
mongo:
image: mongo:4.4.1
restart: always
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
volumes:
- /data/db
- ./test-datasets:/home
- ./volumes/mongo-initdb:/docker-entrypoint-initdb.d
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka:2.12-2.4.1
container_name: agent-kafka
ports:
- "9092:9092"
expose:
- "9093"
- "9094"
depends_on:
- zookeeper
environment:
KAFKA_LISTENERS: PLAINTEXT://:29092,PLAINTEXT_HOST://:9092
# KAFKA_LISTENERS: PLAINTEXT://:29092,PLAINTEXT_HOST://:9092,SSL://:9093,SSL_DOCKER://:9094
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
# KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092,SSL://localhost:9093,SSL_DOCKER://kafka:9094
# KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT,SSL:SSL,SSL_DOCKER:SSL
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
# KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_CREATE_TOPICS: "test:1:1,test-json:1:1"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
# KAFKA_SSL_KEYSTORE_LOCATION: '/certs/docker.kafka.server.keystore.jks'
# KAFKA_SSL_KEYSTORE_PASSWORD: 'kafkadocker'
# KAFKA_SSL_KEY_PASSWORD: 'kafkadocker'
# KAFKA_SSL_TRUSTSTORE_LOCATION: '/certs/docker.kafka.server.truststore.jks'
# KAFKA_SSL_TRUSTSTORE_PASSWORD: 'kafkadocker'
# KAFKA_SSL_CLIENT_AUTH: 'required'
# KAFKA_SECURITY_INTER_BROKER_PROTOCOL: 'SSL'
# KAFKA_SECURITY_PROTOCOL: 'SSL'
# KAFKA_SSL_ENDPOINT_IDENTIFICATION_ALGORITHM: ''
# KAFKA_LOG4J_ROOT_LOGLEVEL: 'DEBUG, stdout'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./test-datasets:/home
# - ./certs:/certs
influx:
image: influxdb:1.8.3
ports:
- "8086:8086"
volumes:
- /var/lib/influxdb
- ./volumes/influx-initdb:/docker-entrypoint-initdb.d
environment:
INFLUXDB_DB: test
# INFLUXDB_HTTP_AUTH_ENABLED: 'true'
# INFLUXDB_ADMIN_USER: admin
# INFLUXDB_ADMIN_PASSWORD: admin
# INFLUXDB_READ_USER: ro
# INFLUXDB_READ_USER_PASSWORD: roro
squid:
image: datadog/squid
extra_hosts:
- "daria-test2:10.0.0.28"
ports:
- "3128:3128"
mysql:
image: mysql:8.0.21
container_name: agent-mysql
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_HOST: "%"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "zabbix"
MYSQL_USER: "user"
MYSQL_PASSWORD: "password"
ports:
- "3308:3306"
volumes:
- /var/lib/mysql
- ./volumes/mysql-initdb:/docker-entrypoint-initdb.d
postgres:
image: postgres:9.6.19
environment:
POSTGRES_DB: test
POSTGRES_PASSWORD: password
volumes:
- /var/lib/postgresql/data
- ./volumes/postgres-initdb:/docker-entrypoint-initdb.d
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.5.2
container_name: agent-es
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- cluster.initial_master_nodes=es01
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
volumes:
- /usr/share/elasticsearch/data
ports:
- 9200:9200
dummy_destination:
build: dummy_destination
container_name: dummy_destination
volumes:
- ./agent/output:/app/log
- ./dummy_destination:/app/
ports:
- 8080:80
sage:
build: sage_mock
victoriametrics:
container_name: victoriametrics
image: victoriametrics/victoria-metrics:v1.43.0
ports:
- 8428:8428
volumes:
- /storage
command:
- '--storageDataPath=/storage'
- '--httpListenAddr=:8428'
- '--retentionPeriod=600'
restart: always
datagen:
image: anodot/agent-data-gen
container_name: data-gen
zabbix-server:
image: zabbix/zabbix-server-mysql:alpine-4.4.10
depends_on:
- mysql
environment:
DB_SERVER_HOST: mysql
MYSQL_USER: "user"
MYSQL_PASSWORD: "password"
zabbix-web:
image: zabbix/zabbix-web-nginx-mysql:alpine-4.4.10
ports:
- 8888:8080
depends_on:
- zabbix-server
environment:
DB_SERVER_HOST: mysql
MYSQL_USER: "user"
MYSQL_PASSWORD: "password"
zabbix-agent:
image: zabbix/zabbix-agent:alpine-4.4.10
hostname: zabbixagent
depends_on:
- zabbix-server
clickhouse:
image: yandex/clickhouse-server
volumes:
- /var/lib/clickhouse
- ./volumes/clickhouse-initdb:/docker-entrypoint-initdb.d
ports:
- 8123:8123
- 9000:9000
volumes:
agent-data: