One more question, is there a docker-compose file ...
# prefect-server
r
One more question, is there a docker-compose file somewhere for Orion to get started quickly? I'd rather this than using a cli. With the previous version, I had to reverse engineer the cli to create one.
k
See this. Because the services dont spin up as different containers for Orion
r
Thank you. Wow, that's a lot cleaner than the previous version. So now you just need a single container plus the agents.
k
Yes
z
Let me know if you figure out the right command to expose the API port to localhost
I tried earlier and didn’t get it working for some reason
r
From what I know of docker, you should be able to do
docker run -p 4200:4200 run...
you may also need to tell
prefect orion start
to bind to
0.0.0.0
perhaps try
docker run -p 4200:4200 -e PREFECT_API_URL=<http://0.0.0.0:4200/api> prefecthq/prefect:2.0a13-python3.8 -- prefect orion start
these are just guesses, hope it helps
z
Yeah I expected
docker run -p 127.0.0.1:4200:4200 -it prefecthq/prefect:2.0b1-python3.8 prefect orion start --host 0.0.0.0
to work but it doesn’t
(The API url is only used by the client, not the server btw)