Hello prefect community, since Marvin could not he...
# ask-community
m
Hello prefect community, since Marvin could not help, could you please provide me with a working docker compose file to run prefect 3.2 , using latest docker compose v2.29 and python 3.12 (if possible without conda) - all my current attempts failed. Thanks 😊
This finally worked for me:
Copy code
services:
  prefect:
    image: prefecthq/prefect:3-latest
    restart: on-failure
    command: 
      - "prefect"
      - "server"
      - "start"
    ports:
      - "4200:4200" # Prefect UI
    environment:
      #- PREFECT_UI_URL=<http://127.0.0.1:4200/api>
      - PREFECT_API_URL=<http://127.0.0.1:4200/api>
      # If you want to access Prefect Server UI from anywhere other than  the Docker host machine, you will need to change
      # PREFECT_UI_URL and PREFECT_API_URL to match the external hostname/IP of the host machine. For example:
      #- PREFECT_UI_URL=<http://external-ip:4200/api>
      #- PREFECT_API_URL=<http://external-ip:4200/api>
      - PREFECT_SERVER_API_HOST=0.0.0.0
(right now without database support)
Any comments or improvements ? Thanx 🙂