[Issue 4044][docs] Fix outdated docker-compose advertised address #9555
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #4044 and #3367, completes streamnative/pulsar/issues/290
Motivation
When you google "docker compose pulsar", the first results points to
docker-compose/standalone-dashboard/docker-compose.ymlwhich works for the most part if you use CLI commands such aspulsar-admin, but the dashboard never shows any tenant, topics, etc. This has been reported in issues such as #4044 and officially given a recommendation in streamnative/pulsar/issues/290, however,docker-compose/standalone-dashboard/docker-compose.ymlis still outdated.Modifications
docker-compose/standalone-dashboard/docker-compose.ymlto include--advertised-addresswith the name of the network host inside the docker-compose network that the dashboard can actually use.Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
This change added tests and can be verified as follows:
docker-compose up, even after 2 minutes the dashboard still doesn't show tenants or topicsdocker-compose up, refresh the dashboard UI after 20 seconds and the tenants and topics show up.