-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (36 loc) · 1.13 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
---
version: '2'
services:
kafka-connector:
container_name: kafka-connector
image: lightstreamer-kafka-connector-${version}
depends_on:
- producer
ports:
- 8080:8080
environment:
- bootstrap_server=${bootstrap_server}
- api_key=${api_key}
- secret=${secret}
volumes:
- ./web:/lightstreamer/pages/QuickStart
- ./adapters.xml:/lightstreamer/adapters/lightstreamer-kafka-connector-${version}/adapters.xml
producer:
container_name: producer
build:
context: ../quickstart-producer
args:
VERSION: ${version}
configs:
- source: producer.properties
target: /usr/app/producer.properties
command: ["--bootstrap-servers", "${bootstrap_server}", "--topic", "topic_0", "--config-file", "/usr/app/producer.properties"]
configs:
producer.properties:
content: |
# Configure SASL/PLAIN mechanism
sasl.mechanism=PLAIN
# Enable SSL encryption
security.protocol=SASL_SSL
# JAAS configuration
sasl.jaas.config=org.apache.kafka.common.security.plain.PlainLoginModule required username="${api_key}" password="${secret}";