You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
155 lines
4.6 KiB
155 lines
4.6 KiB
--- |
|
version: '2' |
|
services: |
|
zookeeper-1: |
|
image: confluentinc/cp-zookeeper:latest |
|
environment: |
|
ZOOKEEPER_SERVER_ID: 1 |
|
ZOOKEEPER_CLIENT_PORT: 22181 |
|
ZOOKEEPER_TICK_TIME: 2000 |
|
ZOOKEEPER_INIT_LIMIT: 5 |
|
ZOOKEEPER_SYNC_LIMIT: 2 |
|
ZOOKEEPER_SERVERS: localhost:22888:23888;localhost:32888:33888;localhost:42888:43888 |
|
network_mode: host |
|
extra_hosts: |
|
- "moby:127.0.0.1" |
|
|
|
zookeeper-2: |
|
image: confluentinc/cp-zookeeper:latest |
|
environment: |
|
ZOOKEEPER_SERVER_ID: 2 |
|
ZOOKEEPER_CLIENT_PORT: 32181 |
|
ZOOKEEPER_TICK_TIME: 2000 |
|
ZOOKEEPER_INIT_LIMIT: 5 |
|
ZOOKEEPER_SYNC_LIMIT: 2 |
|
ZOOKEEPER_SERVERS: localhost:22888:23888;localhost:32888:33888;localhost:42888:43888 |
|
network_mode: host |
|
extra_hosts: |
|
- "moby:127.0.0.1" |
|
|
|
zookeeper-3: |
|
image: confluentinc/cp-zookeeper:latest |
|
environment: |
|
ZOOKEEPER_SERVER_ID: 3 |
|
ZOOKEEPER_CLIENT_PORT: 42181 |
|
ZOOKEEPER_TICK_TIME: 2000 |
|
ZOOKEEPER_INIT_LIMIT: 5 |
|
ZOOKEEPER_SYNC_LIMIT: 2 |
|
ZOOKEEPER_SERVERS: localhost:22888:23888;localhost:32888:33888;localhost:42888:43888 |
|
network_mode: host |
|
extra_hosts: |
|
- "moby:127.0.0.1" |
|
|
|
kafka-1: |
|
image: confluentinc/cp-kafka:latest |
|
network_mode: host |
|
depends_on: |
|
- zookeeper-1 |
|
- zookeeper-2 |
|
- zookeeper-3 |
|
volumes: |
|
- ./jmx_prometheus_javaagent-0.11.1-SNAPSHOT.jar:/usr/src/jmx_prometheus_javaagent-0.11.1-SNAPSHOT.jar |
|
- ./config.yml:/usr/src/config.yml |
|
- ./config.yml:/usr/src/config-2.yml |
|
environment: |
|
KAFKA_BROKER_ID: 1 |
|
KAFKA_ZOOKEEPER_CONNECT: localhost:22181,localhost:32181,localhost:42181 |
|
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:19092 |
|
# KAFKA_OPTS: -javaagent:/usr/src/jmx_prometheus_javaagent-0.11.1-SNAPSHOT.jar=7071:/usr/src/config.yml |
|
KAFKA_OPTS: -javaagent:/usr/src/jmx_prometheus_javaagent-0.11.1-SNAPSHOT.jar=7071:/usr/src/config-2.yml |
|
extra_hosts: |
|
- "moby:127.0.0.1" |
|
|
|
kafka-2: |
|
image: confluentinc/cp-kafka:latest |
|
network_mode: host |
|
depends_on: |
|
- zookeeper-1 |
|
- zookeeper-2 |
|
- zookeeper-3 |
|
volumes: |
|
- ./jmx_prometheus_javaagent-0.11.1-SNAPSHOT.jar:/usr/src/jmx_prometheus_javaagent-0.11.1-SNAPSHOT.jar |
|
- ./config.yml:/usr/src/config.yml |
|
- ./config.yml:/usr/src/config-2.yml |
|
environment: |
|
KAFKA_BROKER_ID: 2 |
|
KAFKA_ZOOKEEPER_CONNECT: localhost:22181,localhost:32181,localhost:42181 |
|
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:29092 |
|
# KAFKA_OPTS: -javaagent:/usr/src/jmx_prometheus_javaagent-0.11.1-SNAPSHOT.jar=7072:/usr/src/config.yml |
|
KAFKA_OPTS: -javaagent:/usr/src/jmx_prometheus_javaagent-0.11.1-SNAPSHOT.jar=7072:/usr/src/config-2.yml |
|
extra_hosts: |
|
- "moby:127.0.0.1" |
|
|
|
kafka-3: |
|
image: confluentinc/cp-kafka:latest |
|
network_mode: host |
|
depends_on: |
|
- zookeeper-1 |
|
- zookeeper-2 |
|
- zookeeper-3 |
|
volumes: |
|
- ./jmx_prometheus_javaagent-0.11.1-SNAPSHOT.jar:/usr/src/jmx_prometheus_javaagent-0.11.1-SNAPSHOT.jar |
|
- ./config.yml:/usr/src/config.yml |
|
- ./config.yml:/usr/src/config-2.yml |
|
environment: |
|
KAFKA_BROKER_ID: 3 |
|
KAFKA_ZOOKEEPER_CONNECT: localhost:22181,localhost:32181,localhost:42181 |
|
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:39092 |
|
# KAFKA_OPTS: -javaagent:/usr/src/jmx_prometheus_javaagent-0.11.1-SNAPSHOT.jar=7073:/usr/src/config.yml |
|
KAFKA_OPTS: -javaagent:/usr/src/jmx_prometheus_javaagent-0.11.1-SNAPSHOT.jar=7073:/usr/src/config-2.yml |
|
extra_hosts: |
|
- "moby:127.0.0.1" |
|
|
|
# prometheus: |
|
# image: prom/prometheus |
|
# network_mode: host |
|
# ports: |
|
# - "9090:9090" |
|
# volumes: |
|
# - ./prometheus.yml:/etc/prometheus/prometheus.yml |
|
# depends_on: |
|
# - kafka-1 |
|
# - kafka-2 |
|
# - kafka-3 |
|
|
|
# burrow: |
|
# image: artemz/burrow |
|
# network_mode: host |
|
# volumes: |
|
# - ./burrow.toml:/etc/burrow/burrow.toml |
|
# - burrow_data:/var/tmp/burrow |
|
# ports: |
|
# - "8000:8000" |
|
# depends_on: |
|
# - zookeeper-1 |
|
# - zookeeper-2 |
|
# - zookeeper-3 |
|
# - kafka-1 |
|
# - kafka-2 |
|
# - kafka-3 |
|
# restart: always |
|
|
|
# dashboard: |
|
# image: joway/burrow-dashboard |
|
# network_mode: host |
|
# ports: |
|
# - "80:80" |
|
# environment: |
|
# BURROW_BACKEND: http://localhost:8000 |
|
# depends_on: |
|
# - burrow |
|
# restart: always |
|
|
|
# grafana: |
|
# image: grafana/grafana |
|
# network_mode: host |
|
# ports: |
|
# - "3000:3000" |
|
# volumes: |
|
# - grafana_data:/var/lib/grafana |
|
# depends_on: |
|
# - prometheus |
|
|
|
# volumes: |
|
# grafana_data: |
|
# burrow_data: |