summaryrefslogtreecommitdiffstats
path: root/sampleClient/src/main/resources/docker-compose/scram-docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'sampleClient/src/main/resources/docker-compose/scram-docker-compose.yml')
-rw-r--r--sampleClient/src/main/resources/docker-compose/scram-docker-compose.yml49
1 files changed, 49 insertions, 0 deletions
diff --git a/sampleClient/src/main/resources/docker-compose/scram-docker-compose.yml b/sampleClient/src/main/resources/docker-compose/scram-docker-compose.yml
new file mode 100644
index 0000000..562ad97
--- /dev/null
+++ b/sampleClient/src/main/resources/docker-compose/scram-docker-compose.yml
@@ -0,0 +1,49 @@
+version: '3.5'
+services:
+ zookeeper:
+ image: confluentinc/cp-zookeeper:7.3.2
+ hostname: zookeeper
+ container_name: zookeeper
+ restart: always
+ ports:
+ - "9999:9999"
+ volumes:
+ - ./zookeeper.sasl.jaas.config:/etc/kafka/zookeeper_server_jaas.conf
+ environment:
+ ZOOKEEPER_CLIENT_PORT: 2181
+ ZOOKEEPER_TICK_TIME: 2000
+ KAFKA_JMX_HOSTNAME: localhost
+ KAFKA_OPTS: -Djava.security.auth.login.config=/etc/kafka/zookeeper_server_jaas.conf
+ -Dzookeeper.authProvider.1=org.apache.zookeeper.server.auth.SASLAuthenticationProvider
+ -Dzookeeper.allowSaslFailedClients=false
+ -Dzookeeper.requireClientAuthScheme=sasl
+
+ broker:
+ image: confluentinc/cp-server:7.3.2
+ hostname: broker
+ container_name: broker
+ restart: always
+ ports:
+ - "9092:9092"
+ volumes:
+ - ./kafka.jaas.conf:/etc/kafka/kafka_server_jaas.conf
+ - ./config.properties:/home/appuser/config.properties
+ depends_on:
+ - zookeeper
+ environment:
+ KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
+ KAFKA_LISTENERS: SASL_PLAINTEXT://:9092
+ KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: SASL_PLAINTEXT:SASL_PLAINTEXT
+ KAFKA_ADVERTISED_LISTENERS: SASL_PLAINTEXT://broker:9092
+ KAFKA_SASL_ENABLED_MECHANISMS: SCRAM-SHA-512
+ KAFKA_SASL_MECHANISM_INTER_BROKER_PROTOCOL: SCRAM-SHA-512
+ KAFKA_INTER_BROKER_LISTENER_NAME: SASL_PLAINTEXT
+ CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1
+ CONFLUENT_METRICS_ENABLE: 'false'
+ KAFKA_CONFLUENT_LICENSE_TOPIC_REPLICATION_FACTOR: 1
+ KAFKA_CONFLUENT_BALANCER_TOPIC_REPLICATION_FACTOR: 1
+ KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
+ KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
+ KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
+ KAFKA_OPTS: "-Djava.security.auth.login.config=/etc/kafka/kafka_server_jaas.conf"
+