| # |
| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, |
| # software distributed under the License is distributed on an |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| # KIND, either express or implied. See the License for the |
| # specific language governing permissions and limitations |
| # under the License. |
| # |
| |
| version: '3' |
| networks: |
| pulsar: |
| driver: bridge |
| services: |
| standalone: |
| image: apachepulsar/pulsar:latest |
| container_name: standalone |
| hostname: local |
| restart: "no" |
| networks: |
| - pulsar |
| environment: |
| - metadataStoreUrl=zk:localhost:2181 |
| - clusterName=standalone-broker-metadata |
| - advertisedAddress=localhost |
| - advertisedListeners=external:pulsar://localhost:6650 |
| - PULSAR_MEM=-Xms512m -Xmx512m -XX:MaxDirectMemorySize=256m |
| - PULSAR_PREFIX_BROKER_ENTRY_METADATA_INTERCEPTORS=org.apache.pulsar.common.intercept.AppendIndexMetadataInterceptor |
| - PULSAR_PREFIX_EXPOSING_BROKER_ENTRY_METADATA_TO_CLIENT_ENABLED=true |
| ports: |
| - "6650:6650" |
| - "8080:8080" |
| command: bash -c "bin/apply-config-from-env.py conf/standalone.conf && exec bin/pulsar standalone -nss -nfw" |