Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '2.1'
- services:
- postgres:
- image: debezium/example-postgres:1.1
- ports:
- - "5432:5432"
- environment:
- - POSTGRES_PASSWORD=1234
- - POSTGRES_DB=postgres
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=postgres
- mysql:
- image: debezium/example-mysql:1.1
- ports:
- - "3306:3306"
- environment:
- - MYSQL_ROOT_PASSWORD=123456
- - MYSQL_USER=mysqluser
- - MYSQL_PASSWORD=mysqlpw
- elasticsearch:
- image: elastic/elasticsearch:7.6.0
- environment:
- - cluster.name=docker-cluster
- - bootstrap.memory_lock=true
- - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- - discovery.type=single-node
- ports:
- - "9200:9200"
- - "9300:9300"
- ulimits:
- memlock:
- soft: -1
- hard: -1
- nofile:
- soft: 65536
- hard: 65536
- kibana:
- image: elastic/kibana:7.6.0
- ports:
- - "5601:5601"
- zookeeper:
- image: wurstmeister/zookeeper:3.4.6
- ports:
- - "2181:2181"
- kafka:
- image: wurstmeister/kafka:2.12-2.2.1
- ports:
- - "9092:9092"
- - "9094:9094"
- depends_on:
- - zookeeper
- environment:
- - KAFKA_ADVERTISED_LISTENERS=INSIDE://:9094,OUTSIDE://localhost:9092
- - KAFKA_LISTENERS=INSIDE://:9094,OUTSIDE://:9092
- - KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
- - KAFKA_INTER_BROKER_LISTENER_NAME=INSIDE
- - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- - KAFKA_CREATE_TOPICS="user_behavior:1:1"
- volumes:
- - /var/run/docker.sock:/var/run/docker.sock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement