Docker with webchat UI

Hey guys,

If I want to use salabalemind or react-web chat UI or any other with a rest channel with my dockered NLU+Core in a cloud, do I need to docker the UI too? If you have dockered both (Building Rasa with Docker ), it is avaiable at http://localhost:5005 so I assume that you can just use the UI within your browser without docker anything, right? Other way could be to install the UI and docker rasa and just give in the UI the docker port? Has anyone done one of those two ways?

EDIT: I just have a core and NLU model without running it as a server. I just want to use the UI (like react chat) which starts I think jus a core server with the core model? How would I create the compose file for that case?

I am not experienced with that.