Last active
February 3, 2022 13:57
-
-
Save long-blade/caa51746c2c8cad236e9f98565e30405 to your computer and use it in GitHub Desktop.
[Redis-Kafka-Neo4j] Boot up all in one a kafka cluster and neo4j + redis databases! #kafka #zookeeper #neo4j #redis #docker #docker-compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
redis: | |
image: 'bitnami/redis:latest' | |
ports: | |
- 6379:6379 | |
environment: | |
- REDIS_PASSWORD=password | |
- ALLOW_EMPTY_PASSWORD=yes | |
neo4j: | |
image: neo4j:enterprise | |
hostname: neo4j | |
container_name: neo4j | |
ports: | |
- "7474:7474" | |
- "7687:7687" | |
depends_on: | |
- kafka | |
volumes: | |
- ./neo4j/data:/data | |
- ./neo4j/plugins:/plugins | |
environment: | |
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes | |
- NEO4J_AUTH=neo4j/password | |
- NEO4J_dbms_allow__upgrade=true | |
- NEO4J_dbms_security_procedures_unrestricted=apoc.\\\* | |
# KAFKA related configuration | |
- NEO4J_kafka_bootstrap_servers=kafka:9092 | |
zookeeper: | |
image: confluentinc/cp-zookeeper:latest | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 2181 | |
ZOOKEEPER_TICK_TIME: 2000 | |
ports: | |
- 2181:2181 | |
kafka: | |
image: confluentinc/cp-kafka:latest | |
depends_on: | |
- zookeeper | |
ports: | |
- 29092:29092 | |
environment: | |
KAFKA_BROKER_ID: 1 | |
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | |
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092 | |
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT | |
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT | |
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 | |
KAFKA_ADVERTISED_HOST_NAME: 10.7.1.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment