https://prefect.io logo
Title
l

Laraib Siddiqui

12/22/2022, 5:56 PM
I tried to run prefect Orion server inside a docker on port 8000 but the server was not loading. The port was open, when i ran the airflow server on the same port i was able to access the airflow server. Is there some further configuration required to be done. I ran the server with the following command
prefect orion start --port 8000
My port is open to communicate with the host.
1
r

Ryan Peden

12/22/2022, 5:57 PM
You might need to also set
--host 0.0.0.0
for the Orion server to be accessible from outside the Docker container.
You can also set it via environment variable:
PREFECT_ORION_API_HOST=0.0.0.0
I have an example setup here using Docker Compose in case it helps: https://github.com/rpeden/prefect-docker-compose/blob/main/docker-compose.yml
l

Laraib Siddiqui

12/22/2022, 6:03 PM
Thank you again @Ryan Peden . I will read more into documentation.
r

Ryan Peden

12/22/2022, 6:04 PM
You're welcome, Laraib! Please feel free to follow up if you have any questions.
👍 1