Emmanuel Rambeau
10/15/2024, 12:21 PMMarvin
10/15/2024, 12:21 PMPREFECT_SERVER_API_HOST
is properly networked to listen on 0.0.0.0
instead of 127.0.0.1
if the UI is intended to be accessed externally, such as from a browser outside the container's local host. This setting ensures that the server is not only listening on a localhost interface, which could restrict accessibility.
3. Documentation Guidance: According to Prefect 3.0 self-hosting guide, ensure that any necessary certificates and proxy settings are configured especially if you're operating behind a proxy or encountering TLS certificate issues. Use the PREFECT_API_TLS_INSECURE_SKIP_VERIFY
environment variable for testing if certificate issues are suspected.
4. UI Accessibility: One reported issue on GitHub here relates to blank screens in UI, which can occur due to incomplete network responses over certain VPNs. Confirm that network routes and firewalls between your browser (or network) and the Prefect UI are properly configured and responsive.
Here's a possible adjustment to your `docker-compose.yaml`:
yaml
services:
server:
container_name: prefect-server
image: prefecthq/prefect:3-latest
restart: unless-stopped
volumes:
- ./server:/root/.prefect
- /home/data/flows:/opt/prefect/flows
entrypoint: ["prefect", "server", "start"]
environment:
- PREFECT_SERVER_API_HOST=0.0.0.0
- PREFECT_API_DATABASE_CONNECTION_URL=<postgresql+asyncpg://postgres:postgres@db:5432/prefect>
ports:
- "4200:4200"
depends_on:
- db
Ensure that your PREFECT_API_URL
on the worker is correctly set with the server's public or accessible IP/domain, reflecting changes made to make the server UI accessible.
By making these adjustments, you should be able to launch and access your Prefect UI as expected. Let me know if this helps or if there are any further issues!Nate
10/15/2024, 2:43 PMNate
10/15/2024, 2:43 PMEmmanuel Rambeau
10/15/2024, 2:45 PMNate
10/15/2024, 2:47 PM3-latest
or 3.0.9-*
tagEmmanuel Rambeau
10/15/2024, 3:55 PMdocker-compose.yml
and nginx.conf
files here. I've also added some console logs in case you have any insights.