1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/kafka-rest/docker-compose.yml

60 lines
2.1 KiB
YAML
Raw Normal View History

2020-02-11 10:09:03 +02:00
version: "3.7"
services:
schema-registry:
image: confluentinc/cp-schema-registry:5.4.0
container_name: schema-registry
hostname: schema-registry
environment:
- SCHEMA_REGISTRY_HOST_NAME=schema-registry
- SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL=zookeeper:2181
extra_hosts:
- zookeeper:10.0.0.21
restart: unless-stopped
2020-02-20 13:29:06 +02:00
kafka-connect:
container_name: kafka-connect
image: confluentinc/cp-server-connect:5.4.0
ports:
- 8083:8083
depends_on:
- zookeeper
- kafka
- schema-registry
environment:
- CONNECT_REST_PORT=8083
- CONNECT_REST_ADVERTISED_HOST_NAME=kafka-connect
- CONNECT_BOOTSTRAP_SERVERS=kafka:9092
- CONNECT_GROUP_ID=default
- CONNECT_CONFIG_STORAGE_TOPIC=default.config
- CONNECT_OFFSET_STORAGE_TOPIC=default.offsets
- CONNECT_STATUS_STORAGE_TOPIC=default.status
- CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR=1
- CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR=1
- CONNECT_STATUS_STORAGE_REPLICATION_FACTOR=1
- CONNECT_KEY_CONVERTER=io.confluent.connect.avro.AvroConverter
- CONNECT_KEY_CONVERTER_SCHEMA_REGISTRY_URL=http://schema-registry:8081
- CONNECT_VALUE_CONVERTER=io.confluent.connect.avro.AvroConverter
- CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL=http://schema-registry:8081
- CONNECT_INTERNAL_KEY_CONVERTER=org.apache.kafka.connect.json.JsonConverter
- CONNECT_INTERNAL_VALUE_CONVERTER=org.apache.kafka.connect.json.JsonConverter
- CONNECT_LOG4J_ROOT_LOGLEVEL=INFO
- CONNECT_LOG4J_LOGGERS=org.apache.kafka.connect.runtime.rest=WARN,org.reflections=ERROR
- CONNECT_PLUGIN_PATH=/usr/share/java
2020-02-11 10:09:03 +02:00
kafka-rest:
image: confluentinc/cp-kafka-rest:5.4.0
container_name: kafka-rest
hostname: kafka-rest
ports:
- "8082:8082"
environment:
- KAFKA_REST_HOST_NAME=kafka-rest
- KAFKA_REST_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_REST_BOOTSTRAP_SERVERS=kafka:9092
extra_hosts:
- zookeeper:10.0.0.21
- kafka:10.0.0.21
restart: unless-stopped