https://prefect.io logo
s

Samuel Hinton

02/16/2021, 3:36 PM
Hi all! I was wondering how we can change the UI port from 8080 to something else. I have changed the
PREFECT__SERVER__UI__PORT
and
PREFECT__SERVER__UI__HOST_PORT
to try and follow the config.toml, but the UI service is still launching and saying “👾👾👾 UI running at localhost:8080 👾👾👾” and I dont know what else to change in the UI service 😞 As a follow up, what is the difference between the UI port and the UI host port? EDIT: I see echo
UI running at localhost:8080
is hardcoded in ./start_server.sh in the UI service, is this meant to be the case?
z

Zanie

02/16/2021, 4:20 PM
Hi @Samuel Hinton -- are you starting the UI via
prefect server start
?
s

Samuel Hinton

02/16/2021, 4:23 PM
Hi Michael - alas no, as our prefect services have to be integrated with other docker services and thus I have merged in the prefect docker-compose with our own. As of about 2 minutes ago I think I managed to get it working. I insted set the UI PORT env variables in the apollo service, not the UI service, and then UI service just maps the desired port onto 8080 using normal docker port mapping so nginx can handle it. Does that sound about what youd expect?
z

Zanie

02/16/2021, 4:25 PM
A bit hard to follow but that sounds about right. You can see in the docker-compose the internal ports are all hardcoded to the
prefect-server
network then we just map that internal port to the requested external port (which is configurable but defaults to 8080)
s

Samuel Hinton

02/16/2021, 4:26 PM
Ah yeah, Im following, just took me a little bit to catch on. Thanks for confirming, appreciate it mate!
10 Views