https://prefect.io logo
Title
a

Arran

08/05/2021, 9:42 AM
does anyone know of a resource that will get me started with installing prefect server and an agent on an ubuntu VM? All i seem to be able to find is docs on GCP and AWS. I want it to run as a service too, restarting automatically if it crashes out
k

Kevin Kho

08/05/2021, 2:42 PM
Hey @Arran, on the VM, it would be just spinning up server with
prefect server start
and this will use
docker-compose
and spin up the relevant services.
server
as a service is a bit harder, what do you have in mind? Are you not on cloud?
Have you seen this?
a

Arran

08/05/2021, 3:37 PM
that looks close to what im after. We have our own servers and have set up a VM with ubuntu live server to dedicate to prefect and some node scripts
we want to expose the UI and GraphQL API so we can access it from our local machines
k

Kevin Kho

08/05/2021, 3:39 PM
You just need to open the ports of the VM (8080 is the UI and 4200 is the API) and then you can access the UI at <VM-IP>:8080
a

Arran

08/05/2021, 3:39 PM
great
will the server start back up automatically or would i have to set that up with a deamon?
k

Kevin Kho

08/05/2021, 3:40 PM
You would need to set that up. Make sure to
--use-volume
to persist the state so that your Flows are available when you start back up as seen here
a

Arran

08/05/2021, 3:41 PM
awesome
k

Kevin Kho

08/05/2021, 3:41 PM
Or maybe you have an external postgres db you are using like the next section there
a

Arran

08/05/2021, 3:42 PM
i think i was just thrown off by the seemingly lacking documentation a docker deploy. But that seems like it’s because I’m used to more complicated setups. So thats a credit to prefect actually!
thanks again for the help, Kevin
👍 1