Skip to content

Instantly share code, notes, and snippets.

@ghandmann
Created January 27, 2020 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ghandmann/cf312467b61104ed2f852c4817cdc819 to your computer and use it in GitHub Desktop.
Save ghandmann/cf312467b61104ed2f852c4817cdc819 to your computer and use it in GitHub Desktop.
Accessing EventStore WebUI Docker on different port

When running EventStore inside a docker container, you may want to change the "outside" listenting port. This can be done easyil with docker and the port options.

But the EventStore WebUI will not respect these changes, since it does not know, that the "outside" port is different. Resulting in broken URLs generated by the EventStore WebUI which point to the default port 2113.

You can change this by setting both the EVENTSTORE_EXT_HTTP_PORT and EVENTSTORE_EXT_HTTP_PORT_ADVERTISE_AS environment variable when starting the docker container:

docker run -it --rm \
	-e EVENTSTORE_EXT_HTTP_PORT=9999 \
	-e EVENTSTORE_EXT_HTTP_PORT_ADVERTISE_AS=9999 \
  	-p 9999:2113 -p 1113:1113  eventstore/eventstore

This way the WebUI/HTTP API would be accessible on port 9999.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment