vip32 commented on issue #283:
URL: https://github.com/apache/pulsar-manager/issues/283#issuecomment-1057387412
pfoeh, that was hard, This worked for me eventually
docker-compose
```
pulsar:
image: apachepulsar/pulsar:latest
container_name: shop_pulsar
command: bin/pulsar standalone
hostname: pulsar
environment:
PULSAR_MEM: " -Xms512m -Xmx512m -XX:MaxDirectMemorySize=1g"
volumes:
- ./tools/pulsar/data:/pulsar/data
ports:
- 6650:6650
- 8080:8080 # http://localhost:8080/metrics/
restart: unless-stopped
networks:
- acme
pulsar-manager:
image: apachepulsar/pulsar-manager:latest
container_name: shop_pulsar_manager
ports:
- 9527:9527 # http://localhost:9527 (login:pulsar/pulsar)
- 7750:7750
depends_on:
- pulsar
links:
- pulsar
environment:
SPRING_CONFIGURATION_FILE:
/pulsar-manager/pulsar-manager/application.properties
networks:
- acme
```
### create a super-user using the following commands
- shell into shop_pulsar_manager container
- `apk add curl`
- `CSRF_TOKEN=$(curl
http://shop_pulsar_manager:7750/pulsar-manager/csrf-token)`
- `curl --verbose -H 'X-XSRF-TOKEN: $CSRF_TOKEN' -H 'Cookie:
XSRF-TOKEN=$CSRF_TOKEN;' -H 'Content-Type: application/json' -X PUT
http://shop_pulsar_manager:7750/pulsar-manager/users/superuser -d '{"name":
"pulsar", "password": "pulsar", "description": "Pulsar Manager Admin", "email":
"[email protected]"}'`
### create a new environment
- open browser http://localhost:9527 and login with pulsar/pulsar
- choose '+ new environment'
- name=shop, service url=http://pulsar:8080
now have ro find a way to automate this within docker-compose....
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]