Adam
10/05/2022, 9:51 PMRyan Peden
10/05/2022, 9:56 PM-p 4200:4200
to the docker run
command, or adding an expose:
section to your Docker Compose file?
If not, you'll need to do that so local flow runs can report their results to Orion running in Docker. If you're already sharing the port, then PREFECT_API_URL would just be <http://localhost:4200/api>
.Adam
10/05/2022, 10:09 PMAdam
10/05/2022, 10:09 PMversion: "3.7"
services:
orion:
container_name: orion
image: prefecthq/prefect:2.0.4-python3.7
ports:
- 4200:4200
environment:
PREFECT_ORION_API_HOST: 127.0.0.1
PREFECT_ORION_API_PORT: 4200
PREFECT_ORION_UI_API_URL: <http://host.example.com:9999/api>
command: prefect orion start --host 0.0.0.0 --port 4200
Adam
10/05/2022, 10:10 PMRyan Peden
10/05/2022, 10:31 PMversion: "3.9"
services:
### Prefect Orion API
orion:
image: prefecthq/prefect:2.4.5-python3.10
restart: always
entrypoint: ["prefect", "orion", "start"]
environment:
- PREFECT_ORION_API_HOST=0.0.0.0
ports:
- 4200:4200
It looks like the error might be happening because you're running a much newer Prefect version locally than you are running in Docker?
I don't know for sure, since I don't know what you installed locally - but if you run pip install prefect
you will get 2.4.5Adam
10/05/2022, 10:40 PMRyan Peden
10/05/2022, 10:55 PMhttp://<orion-machine-hostname-or-IP>:<port>/api
. And of course if you are running it on HTTP port 80 or HTTPS port 443, you don't need to include the port in the URLRyan Peden
10/05/2022, 10:57 PMAdam
10/06/2022, 1:26 AM