-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (45 loc) · 1.68 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
---
name: quickstart-kafka-connector-aiven
services:
kafka-connector:
container_name: kafka-connector
image: lightstreamer-kafka-connector-${version}
depends_on:
- producer
ports:
- 8080:8080
environment:
- bootstrap_server=${bootstrap_server}
- username=${username}
- password=${password}
- truststore_password=${truststore_password}
volumes:
- ./web:/lightstreamer/pages/QuickStart
- ./adapters.xml:/lightstreamer/adapters/lightstreamer-kafka-connector-${version}/adapters.xml
- ./log4j.properties:/lightstreamer/adapters/lightstreamer-kafka-connector-${version}/log4j.properties
- ./secrets:/lightstreamer/adapters/lightstreamer-kafka-connector-${version}/secrets
producer:
container_name: producer
build:
context: ../quickstart-producer
args:
VERSION: ${version}
configs:
- source: producer.properties
target: /usr/app/producer.properties
volumes:
- ./secrets:/usr/app/secrets
command: ["--bootstrap-servers", "${bootstrap_server}", "--topic", "stocks", "--config-file", "/usr/app/producer.properties"]
configs:
producer.properties:
content: |
# Configure SASL/SCRAM mechanism
sasl.mechanism=SCRAM-SHA-256
# Enable SSL encryption
security.protocol=SASL_SSL
# JAAS configuration
sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="${username}" password="${password}";
# Trust store configuration to authenticate the broker
ssl.endpoint.identification.algorithm=
ssl.truststore.location=/usr/app/secrets/client.truststore.jks
ssl.truststore.password=password