docker-compose启动pulsar standalone模式及pulsar-manager

1、下载并解压conf.zip配置文件,跟docker-compose.yaml放同个目录。

链接:https://pan.baidu.com/s/1kp9MBKXSd9ic4sWE8o9gqQ
提取码:nl4s

2、docker-compose.yaml

version: '3.3'
services:
  pulsar-standalone:
    image: "apachepulsar/pulsar:2.8.1"
    command: sh -c "bin/apply-config-from-env.py conf/standalone.conf && bin/pulsar standalone"
    restart: always
    container_name: pulsar-standalone
    hostname: pulsar-standalone
    ports:
      - "6650:6650"
      - "8080:8080"
    volumes:
      - ./data:/pulsar/data
      - ./conf:/pulsar/conf
    environment:
      - advertisedAddress=pulsar-standalone
 
 
  pulsar-manager:
    image: "apachepulsar/pulsar-manager:v0.2.0"
    restart: always
    container_name: pulsar-manager
    ports:
      - "9527:9527"
      - "7750:7750"
    depends_on:
      - pulsar-standalone
    links:
      - pulsar-standalone
    environment:
      - SPRING_CONFIGURATION_FILE=/pulsar-manager/pulsar-manager/application.properties

你可能感兴趣的:(docker-compose启动pulsar standalone模式及pulsar-manager)