1律想、下載并解壓conf.zip配置文件逞壁,跟docker-compose.yaml放同個(gè)目錄流济。
鏈接: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