-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 1.4 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
---
name: quickstart-kafka-connector-axqual
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}
- group_id=${group_id}
- topic_mapping=map.${topic}.to
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
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", "${topic}", "--config-file", "/usr/app/producer.properties"]
configs:
producer.properties:
content: |
# Configure SASL/SCRAM mechanism
sasl.mechanism=SCRAM-SHA-512
# Enable SSL encryption
security.protocol=SASL_SSL
# JAAS configuration
sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required username="${username}" password="${password}";