https://prefect.io logo
Title
h

Hafsa Junaid

08/03/2022, 2:45 AM
Do we have docker-compose for prefect 2.0 ?
1
👀 1
🙌 1
s

Sven Aoki

08/03/2022, 2:07 PM
It's mainly taken from here: https://github.com/fraibacas/prefect-orion/blob/main/docker-compose.yaml
prefect-server:
image: prefecthq/prefect:2.0.2-python3.7
command:
- prefect
- orion
- start
ports:
- 8515:4200
volumes:
- ${PWD}/volumes/prefect:/root/.prefect
- ${PWD}/flows:/flows
environment:
PREFECT_ORION_API_HOST: 0.0.0.0
PREFECT_ORION_DATABASE_CONNECTION_URL: <postgresql+asyncpg://prefect>:prefect-pw@database:5432/prefect_server
Although the services are running in docker, I am not managing to log any flows or deployments. Not from the VM where the services are hosted, and not from a local PC although I'd say I adjusted the configs in both cases properly (maybe)
j

Jeff Hale

10/17/2022, 8:09 PM
@Ryan Peden has written some guides to using Docker Compose with Prefect. See a Medium post here.