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 😊
mark doerr
02/08/2025, 10:21 AM
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
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.