https://prefect.io logo
Title
a

Ammar Chalifah

09/11/2022, 6:23 PM
Hi people! I'm trying to run Prefect locally inside a docker container and access the server UI through localhost. To do so, I set the Prefect Orion API Host to 0.0.0.0 (because the default host is localhost, and I can't access localhost through port forwarding from my local machine). However, after building the deployment and applying it, it seems the change is not reflected in the Prefect server UI. I know there is something wrong but I can't spot the mistake. Is there anyone that can help? Thank you 😄 UPDATE: The error in Orion UI no longer exists after I changed the API URL with this env var
PREFECT_API_URL=http//0.0.0.0:4200/api
👍 1
1
a

Anna Geller

09/11/2022, 6:32 PM
You really don't need to run it in Docker because Orion is so lightweight, but of you want to check out this awesome tutorial https://discourse.prefect.io/t/running-prefect-2-with-docker-compose/1516/2
a

Ammar Chalifah

09/11/2022, 7:38 PM
Thank you, will check it out!
UPDATE: The error in Orion UI no longer exists after I changed the API URL with this env var
PREFECT_API_URL=http//0.0.0.0:4200/api
a

Anna Geller

09/12/2022, 5:22 AM
Oh I thought you did that already, that makes sense