Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (74 sloc) 2.38 KB
version: '3'
services:
neo4j:
image: neo4j:3.4.10
hostname: neo4j
container_name: neo4j-blog
depends_on:
- zookeeper
- broker
ports:
- 7474:7474
- 7687:7687
environment:
NEO4J_AUTH: "neo4j/neo"
NEO4J_dbms_memory_heap_max__size: 8G
NEO4J_dbms_security_procedures_unrestricted: "apoc.*"
NEO4J_kafka_auto_offset_reset: earliest
NEO4J_kafka_group_id: neo4j
NEO4J_kafka_zookeeper_connect: zookeeper:2181
NEO4J_kafka_bootstrap_servers: broker:9093
NEO4J_streams_source_topic_nodes_users__blog: User{*}
NEO4J_dbms_logs_debug_level: DEBUG
volumes:
- ./neo4j/plugins:/plugins
- ./neo4j/blog-data:/data
zookeeper:
image: confluentinc/cp-zookeeper
hostname: zookeeper
container_name: zookeeper-blog
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
volumes:
- ./zookeeper/data:/var/lib/zookeeper/data
- ./zookeeper/logs:/var/lib/zookeeper/log
broker:
image: confluentinc/cp-enterprise-kafka
hostname: broker
container_name: broker-blog
depends_on:
- zookeeper
ports:
- "9092:9092"
expose:
- "9093"
environment:
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://broker:9093,OUTSIDE://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9093,OUTSIDE://0.0.0.0:9092
CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: broker:9093
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_METRIC_REPORTERS: io.confluent.metrics.reporter.ConfluentMetricsReporter
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
CONFLUENT_METRICS_REPORTER_ZOOKEEPER_CONNECT: zookeeper:2181
CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1
CONFLUENT_METRICS_ENABLE: 'true'
CONFLUENT_SUPPORT_CUSTOMER_ID: 'anonymous'
KAFKA_DELETE_TOPIC_ENABLE: 'true'
volumes:
- ./kafka/data:/var/lib/kafka/data
- ./kafka/logs:/var/lib/kafka/log
ksql-server:
container_name: ksql-server-blog
image: "confluentinc/cp-ksql-server:5.2.1"
depends_on:
- broker
environment:
KSQL_BOOTSTRAP_SERVERS: broker:9093
KSQL_LISTENERS: http://0.0.0.0:8088
You can’t perform that action at this time.