blob: 035c1d2d0eceeaee21fd1a44c74ae4a0157c6624 [file] [log] [blame]
version: '3.5'
services:
standalone:
container_name: standalone
image: 'apachepulsar/pulsar:2.7.0'
ports:
- '54548:8080'
- '54547:6650'
volumes:
- ./appdata/:/appdata
environment:
- PULSAR_PREFIX_tokenSecretKey=file:///appdata/my-secret.key
- authenticationEnabled=true
- authorizationEnabled=true
- authenticationProviders=org.apache.pulsar.broker.authentication.AuthenticationProviderToken
- authenticateOriginalAuthData=false
- brokerClientAuthenticationPlugin=org.apache.pulsar.client.impl.auth.AuthenticationToken
- brokerClientAuthenticationParameters=token:eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ0ZXN0LXVzZXIifQ.KGnuZLJys6MUSth__ZRYdb4sPIKe9_kRrm2wfZ7Dwrc
- superUserRoles=test-user
- PULSAR_PREFIX_authenticationRefreshCheckSeconds=5
- webServicePort=8080
- brokerServicePort=6650
command: |
/bin/bash -c "bin/apply-config-from-env.py conf/standalone.conf && bin/pulsar standalone --no-functions-worker"