-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
281 lines (260 loc) · 7.9 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
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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
version: '3.1'
services:
dc:
platform: linux/amd64
build: containers/streamsets
container_name: dc
ports:
- "18630:18630"
restart: on-failure
volumes:
- sdc-data:/data
- ./certs:/home/certs
- ./test-datasets:/home/test-datasets
# - ./test-datasets:/kerberos
# - ./test-datasets/krb5.conf:/etc/krb5.conf
environment:
SDC_CONF_PRODUCTION_MAXBATCHSIZE: "50"
SDC_JAVA_OPTS: "-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Xmx4096m -Xms4096m -server"
# SDC_JAVA_OPTS: "-Djava.security.auth.login.config=/kerberos/kafka-consumer_jaas.conf -Dsun.security.krb5.debug=true -Djava.security.krb5.conf=/etc/krb5.conf"
# SDC_CONF_PARSER_LIMIT: 2048576
SDC_CONF_RUNNER_THREAD_POOL_SIZE: "2000"
# extra_hosts:
# - "daria-test2:10.0.0.28"
# creating second streamsets to run tests on multiple instances
dc2:
platform: linux/amd64
build: containers/streamsets
container_name: dc2
ports:
- "18629:18630"
restart: on-failure
volumes:
- sdc-data2:/data
- ./certs:/home/certs
- ./test-datasets:/home/test-datasets
environment:
SDC_JAVA_OPTS: "-Xmx4096m -Xms4096m -server"
SDC_CONF_PRODUCTION_MAXBATCHSIZE: "50"
SDC_CONF_RUNNER_THREAD_POOL_SIZE: "2000"
agent:
platform: linux/amd64
build: agent
restart: always
container_name: anodot-agent
hostname: agent
environment:
STREAMSETS_USERNAME: 'admin'
STREAMSETS_PASSWORD: 'admin'
STREAMSETS_URL: 'http://dc:18630'
ENV_PROD: 'false'
AGENT_DB_HOST: 'db'
AGENT_DB_USER: 'agent'
AGENT_DB_PASSWORD: 'agent'
PGPASSWORD: 'agent'
AGENT_URL: 'http://anodot-agent'
TLS_VERSION: '1.1'
LOG_LEVEL: 'INFO'
# VALIDATION_ENABLED: 'false'
stdin_open: true
tty: true
depends_on:
- dc
- db
volumes:
- ./agent/backup-data:/usr/src/app/backup-data
# - ./scripts:/usr/src/app/scripts
- dummy-destination-data:/output
- ./test-datasets:/home/test-datasets
db:
container_name: db
image: postgres:15
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: agent
POSTGRES_PASSWORD: agent
POSTGRES_DB: agent
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:0.10.2.1
image: wurstmeister/kafka:2.12-2.4.1
container_name: agent-kafka
depends_on:
- zookeeper
# ports:
# - "9092:9092"
# expose:
# - "9093"
# - "9094"
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,test-partitions:2: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
INFLUXDB_HTTP_FLUX_ENABLED: 'true'
influx-2:
image: influxdb:2.0.7
container_name: influx2
ports:
- "8087:8086"
volumes:
- /var/lib/influxdb
- ./volumes/influx2.0-initdb:/docker-entrypoint-initdb.d
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: test
DOCKER_INFLUXDB_INIT_PASSWORD: testtest
DOCKER_INFLUXDB_INIT_ORG: test
DOCKER_INFLUXDB_INIT_BUCKET: test
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: token
squid:
image: ubuntu/squid
extra_hosts:
- "daria-test2:10.0.0.28"
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"
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"
- xpack.security.enabled=true
- ELASTIC_USERNAME=elastic
- ELASTIC_PASSWORD=password
- xpack.security.transport.ssl.enabled=true
volumes:
- /usr/share/elasticsearch/data
ports:
- "9200:9200"
dummy_destination:
build: containers/dummy_destination
container_name: dummy_destination
volumes:
- dummy-destination-data:/app/log
sage:
build: containers/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
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
snmpsim:
build: containers/snmpsim
container_name: snmpsim
ports:
- "1161:1161/udp"
volumes:
sdc-data:
sdc-data2:
agent-data:
dummy-destination-data: