mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 12:14:18 +00:00
58 lines
2.2 KiB
YAML
58 lines
2.2 KiB
YAML
version: '2.3'
|
|
|
|
services:
|
|
kafka_zookeeper:
|
|
image: zookeeper:3.4.9
|
|
hostname: kafka_zookeeper
|
|
environment:
|
|
ZOO_MY_ID: 1
|
|
ZOO_PORT: 2181
|
|
ZOO_SERVERS: server.1=kafka_zookeeper:2888:3888
|
|
security_opt:
|
|
- label:disable
|
|
|
|
kafka1:
|
|
image: confluentinc/cp-kafka:5.2.0
|
|
hostname: kafka1
|
|
ports:
|
|
- ${KAFKA_EXTERNAL_PORT:-8081}:${KAFKA_EXTERNAL_PORT:-8081}
|
|
environment:
|
|
KAFKA_ADVERTISED_LISTENERS: INSIDE://localhost:${KAFKA_EXTERNAL_PORT},OUTSIDE://kafka1:19092
|
|
KAFKA_ADVERTISED_HOST_NAME: kafka1
|
|
KAFKA_LISTENERS: INSIDE://0.0.0.0:${KAFKA_EXTERNAL_PORT},OUTSIDE://0.0.0.0:19092
|
|
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
|
|
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
|
|
KAFKA_BROKER_ID: 1
|
|
KAFKA_ZOOKEEPER_CONNECT: "kafka_zookeeper:2181"
|
|
KAFKA_LOG4J_LOGGERS: "kafka.controller=INFO,kafka.producer.async.DefaultEventHandler=INFO,state.change.logger=INFO"
|
|
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
|
|
depends_on:
|
|
- kafka_zookeeper
|
|
security_opt:
|
|
- label:disable
|
|
|
|
schema-registry:
|
|
image: confluentinc/cp-schema-registry:5.2.0
|
|
hostname: schema-registry
|
|
ports:
|
|
- ${SCHEMA_REGISTRY_EXTERNAL_PORT:-12313}:${SCHEMA_REGISTRY_INTERNAL_PORT:-12313}
|
|
environment:
|
|
SCHEMA_REGISTRY_HOST_NAME: schema-registry
|
|
SCHEMA_REGISTRY_KAFKASTORE_SECURITY_PROTOCOL: PLAINTEXT
|
|
# SCHEMA_REGISTRY_KAFKASTORE_SECURITY_PROTOCOL: BASIC
|
|
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: PLAINTEXT://kafka1:19092
|
|
SCHEMA_REGISTRY_AUTHENTICATION_METHOD: BASIC
|
|
# SCHEMA_REGISTRY_BASIC_AUTH_CREDENTIALS_SOURCE: USER_INFO
|
|
# SCHEMA_REGISTRY_BASIC_AUTH_USER_INFO: fred:letmein
|
|
# SCHEMA_REGISTRY_SCHEMA_REGISTRY_BASIC_AUTH_USER_INFO: fred:letmein
|
|
SCHEMA_REGISTRY_AUTHENTICATION_ROLES: schemaadmin, schemauser
|
|
SCHEMA_REGISTRY_AUTHENTICATION_REALM: RealmFooBar
|
|
SCHEMA_REGISTRY_OPTS: "-Djava.security.auth.login.config=/etc/schema-registry/secrets/schema_registry_jaas.conf"
|
|
volumes:
|
|
- ${SCHEMA_REGISTRY_DIR:-}/secrets:/etc/schema-registry/secrets
|
|
depends_on:
|
|
- kafka_zookeeper
|
|
- kafka1
|
|
security_opt:
|
|
- label:disable
|