Advertisement
hivefans

flink-cdc-test.yml

Jul 7th, 2021
1,192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.57 KB | None | 0 0
  1. version: '2.1'
  2. services:
  3.   postgres:
  4.     image: debezium/example-postgres:1.1
  5.     ports:
  6.      - "5432:5432"
  7.     environment:
  8.      - POSTGRES_PASSWORD=1234
  9.       - POSTGRES_DB=postgres
  10.       - POSTGRES_USER=postgres
  11.       - POSTGRES_PASSWORD=postgres
  12.   mysql:
  13.     image: debezium/example-mysql:1.1
  14.     ports:
  15.      - "3306:3306"
  16.     environment:
  17.      - MYSQL_ROOT_PASSWORD=123456
  18.       - MYSQL_USER=mysqluser
  19.       - MYSQL_PASSWORD=mysqlpw
  20.   elasticsearch:
  21.     image: elastic/elasticsearch:7.6.0
  22.     environment:
  23.      - cluster.name=docker-cluster
  24.       - bootstrap.memory_lock=true
  25.       - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
  26.       - discovery.type=single-node
  27.     ports:
  28.      - "9200:9200"
  29.       - "9300:9300"
  30.     ulimits:
  31.       memlock:
  32.         soft: -1
  33.         hard: -1
  34.       nofile:
  35.         soft: 65536
  36.         hard: 65536
  37.   kibana:
  38.     image: elastic/kibana:7.6.0
  39.     ports:
  40.      - "5601:5601"
  41.   zookeeper:
  42.     image: wurstmeister/zookeeper:3.4.6
  43.     ports:
  44.      - "2181:2181"
  45.   kafka:
  46.     image: wurstmeister/kafka:2.12-2.2.1
  47.     ports:
  48.      - "9092:9092"
  49.       - "9094:9094"
  50.     depends_on:
  51.      - zookeeper
  52.     environment:
  53.      - KAFKA_ADVERTISED_LISTENERS=INSIDE://:9094,OUTSIDE://localhost:9092
  54.       - KAFKA_LISTENERS=INSIDE://:9094,OUTSIDE://:9092
  55.       - KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
  56.       - KAFKA_INTER_BROKER_LISTENER_NAME=INSIDE
  57.       - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
  58.       - KAFKA_CREATE_TOPICS="user_behavior:1:1"
  59.     volumes:
  60.      - /var/run/docker.sock:/var/run/docker.sock
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement