<@ULVA73B9P> I have a self-hosted version of prefe...
# ask-marvin
e
@Marvin I have a self-hosted version of prefect server deployed with following docker-compose. It worked with the image prefecthq/prefect:2-python3.10, but no more with the image prefecthq/prefect:3-latest version Now in the UI I have the following error : "Can't connect to Server API at http://0.0.0.0:4200. Check that it's accessible from your machine." I tried with localhost or 127.0.0.1 but the UI is no more accessible. How can I fix it ? Below is my docker-compose.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=127.0.0.1 - PREFECT_API_DATABASE_CONNECTION_URL=postgresql+asyncpg://postgres:postgres@db:5432/prefect ports: - 4200:4200 depends_on: - db worker: container_name: prefect-worker image: prefecthq/prefect:3-latest restart: unless-stopped entrypoint: ["/opt/prefect/entrypoint.sh", "prefect", "worker", "start", "--pool", "default"] environment: - PREFECT_API_URL=http://server:4200/api depends_on: - server db: container_name: prefect-database image: postgres:16-bookworm restart: unless-stopped environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres - POSTGRES_DB=prefect expose: - 5432 volumes: - ./postgres:/var/lib/postgresql/data
m
Your message was too long by 127 tokens - please shorten it and try again. For reference, here's your message at the allowed limit:
I have a self-hosted version of prefect server deployed with following docker-compose.
It worked with the image prefecthq/prefect:2-python3.10, but no more with the image prefecthq/prefect:3-latest version Now in the UI I have the following error : "Can't connect to Server API at http://0.0.0.0:4200. Check that it's accessible from your machine." I tried with localhost or 127.0.0.1 but the UI is no more accessible. How can I fix it ? Below is my docker-compose.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=127.0.0.1 - PREFECT_API_DATABASE_CONNECTION_URL=postgresql+asyncpg://postgres:postgres@db:5432/prefect ports: - 4200:4200 depends_on: - db worker: container_name: prefect-worker image: prefecthq/prefect:3-latest restart: unless-stopped entrypoint: ["/opt