Hi, have a question via checking deploy a flow usi...
# ask-community
f
Hi, have a question via checking deploy a flow using
flow.deploy
and Docker : https://docs.prefect.io/3.0/deploy/infrastructure-concepts/deploy-via-python#deploy-a-flow-with-flow-deploy in terms of local deployment, If I already spin up a docker compose service with prefect agent/server, should I just use
flow.serve()
, is the flow.deploy() more like we run prefect in a non-docker env like our local, and try to spin up a flow in a docker container?
n
hi @Felix Wang yep the big difference between .serve and .deploy is: • .serve is good for static infrastructure (a long lived container in a docker compose setup) • .deploy is good for when you want to create a decoupled deployment definition that you can dynamically create infra for (for example you have docker worker running on a VM and so every flow run spins up a new container)
🙌 1
1000000 1