Hi there, is anyone able to point me to a working ...
# prefect-ui
b
Hi there, is anyone able to point me to a working implementation of a docker compose for deploying prefect 2.0 on-prem? I have been through • https://github.com/flavienbwk/prefect-docker-composehttps://github.com/rpeden/prefect-docker-composehttps://github.com/fraibacas/prefect-orionhttps://stackoverflow.com/questions/74478519/prefect-ui-cannot-connect-to-orion-api-when-deployed-on-a-remote-virtual-machinehttps://github.com/PrefectHQ/prefect/issues/5648 • and more but with no luck in being able to get the UI to appear. Is there any definitive documentation on this?
1
r
I'm not aware of much definitive documentation on it. I wrote this blog post when I worked for Prefect, but it's pretty old now. I created and still maintain https://github.com/rpeden/prefect-docker-compose as a personal project, so if you can share a few details about where you're getting stuck either here or via DM, I'd be happy to help (and update the instructions if needed, so other folks can benefit from this too).
d
I was having similar trouble and it was setting PREFECT_UI_API_URL to
http://<server hostname>:4200/api
which finally did it, which I got from rdepen/prefect-docker-compose, so thanks!
👍 3
m
I've been researching for a while until I found @Ryan Peden blog post and repo, which is super easy to follow and straightforward, and finally I can get it up and running perfectly fine.
🙌 1
b
Thanks everyone. So here is a minimal docker-compose that I have:
Copy code
services:
  prefect-server:
    image: prefecthq/prefect:2.10-python3.11
    ports:
      - 4200:4200
    volumes:
      - prefect_test:/root/.prefect
    environment:
      PREFECT_UI_API_URL: http://$HOSTNAME:4200/api
      PREFECT_SERVER_API_HOST: 0.0.0.0
    command: prefect server start
volumes:
  prefect_test:
The API docs work, but the UI shows a blank screen, and an empty body when queried with curl.
Ok I have figured out that it is an internal VPN issue on our end. Thanks everyone!
🙌 1
r
Glad to hear it's working for you, Blake!