• 使用dockercompose启动paulsar集群


    docker-compose.yml

    version: '3.5' services: zoo1: image: apachepulsar/pulsar hostname: zoo1 ports: - "2181:2181" environment: ZK_ID: 1 PULSAR_ZK_CONF: /conf/zookeeper.conf volumes: - ./zoo1/data:/pulsar/data/zookeeper/ - ./zoo1/log/:/pulsar/logs - ./conf:/conf - ./scripts:/scripts command: /bin/bash "/scripts/start_zk.sh" zoo2: image: apachepulsar/pulsar hostname: zoo2 ports: - "2182:2181" environment: ZK_ID: 2 PULSAR_ZK_CONF: /conf/zookeeper.conf volumes: volumes: - ./zoo2/data:/pulsar/data/zookeeper/ - ./zoo2/log/:/pulsar/logs - ./conf:/conf - ./scripts:/scripts command: /bin/bash "/scripts/start_zk.sh" zoo3: image: apachepulsar/pulsar hostname: zoo3 ports: - "2183:2181" environment: ZK_ID: 3 PULSAR_ZK_CONF: /conf/zookeeper.conf volumes: - ./zoo3/data:/pulsar/data/zookeeper/ - ./zoo3/log/:/pulsar/logs - ./conf:/conf - ./scripts:/scripts command: /bin/bash "/scripts/start_zk.sh" bookie1: image: apachepulsar/pulsar hostname: bookie1 ports: - "3181:3181" environment: BOOKIE_CONF: /conf/bookkeeper.conf volumes: - ./bookie1/data:/pulsar/data/bookkeeper/ - ./bookie1/log/:/pulsar/logs - ./conf:/conf - ./scripts:/scripts command: /bin/bash "/scripts/start_mainbk.sh" depends_on: - zoo1 - zoo2 - zoo3 bookie2: image: apachepulsar/pulsar hostname: bookie2 ports: - "3182:3181" environment: BOOKIE_CONF: /conf/bookkeeper.conf volumes: - ./bookie2/data:/pulsar/data/bookkeeper/ - ./bookie2/log/:/pulsar/logs - ./conf:/conf - ./scripts:/scripts command: /bin/bash "/scripts/start_otherbk.sh" depends_on: - bookie1 bookie3: image: apachepulsar/pulsar hostname: bookie3 ports: - "3183:3181" environment: BOOKIE_CONF: /conf/bookkeeper.conf volumes: - ./bookie3/data:/pulsar/data/bookkeeper/ - ./bookie3/log/:/pulsar/logs - ./conf:/conf - ./scripts:/scripts command: /bin/bash "/scripts/start_otherbk.sh" depends_on: - bookie1 broker1: image: apachepulsar/pulsar hostname: broker1 environment: PULSAR_BROKER_CONF: /conf/broker.conf ports: - "6660:6650" - "8090:8080" volumes: - ./broker1/data:/pulsar/data/broker/ - ./broker1/log/:/pulsar/logs - ./conf:/conf - ./scripts:/scripts command: /bin/bash "/scripts/start_broker.sh" depends_on: - bookie1 - bookie2 - bookie3 broker2: image: apachepulsar/pulsar hostname: broker2 environment: PULSAR_BROKER_CONF: /conf/broker.conf ports: - "6661:6650" - "8091:8080" volumes: - ./broker2/data:/pulsar/data/broker/ - ./broker2/log/:/pulsar/logs - ./conf:/conf - ./scripts:/scripts command: /bin/bash "/scripts/start_broker.sh" depends_on: - bookie1 - bookie2 - bookie3 pulsar-proxy: image: apachepulsar/pulsar hostname: pulsar-proxy ports: - "6650:6650" - "8080:8080" environment: PULSAR_PROXY_CONF: "/conf/proxy.conf" volumes: - ./proxy/log/:/pulsar/logs - ./conf:/conf - ./scripts:/scripts command: /bin/bash "/scripts/start_proxy.sh" depends_on: - broker1 - broker2 pulsar-manager: image: "apachepulsar/pulsar-manager" ports: - "9527:9527" - "7750:7750" volumes: - ./manager:/manager depends_on: - pulsar-proxy environment: SPRING_CONFIGURATION_FILE: /pulsar-manager/pulsar-manager/application.properties

    详情参加 https://github.com/wthahaha/pulsar-stack-docker-compose.git

    https://jpinjpblog.wordpress.com/2020/12/10/pulsar-with-manager-and-dashboard-on-docker-compose/

  • 相关阅读:
    20210420
    20210419
    2021041601
    20210416
    20210415
    20210414
    20210413
    20210412
    20210409
    20210405
  • 原文地址:https://www.cnblogs.com/wt11/p/16641350.html
Copyright © 2020-2023  润新知