https://prefect.io logo
Title
l

Leonard Marcq

09/11/2020, 7:57 AM
Hi there - I am a bit lost when it comes to deploying the server ( 😞 ). For those of you deploying Prefect server with a dedicated Postgres database sitting on an external host, how do you do it? Do you just pull out the
docker-compose.yml
from
prefect/cli/
, modify it to point to your db and
up
, or do you pull the whole repo (prefect or prefect_server?), or install prefect via
pip
and pass it a custom
.toml
config somehow and spin up your server with `prefect server start`; or do you do something else entirely?
n

nicholas

09/11/2020, 1:51 PM
Hi @Leonard Marcq - to use an externally-hosted db you'll most likely need to modify the docker-compose file as you described; I'd also take a look at this page in the docs https://docs.prefect.io/orchestration/server/deploy-local.html#database-persistence-and-migrations for some info on custom deployment and https://github.com/szelenka/prefect-server-k8, which is a community-created helm chart.
l

Leonard Marcq

09/11/2020, 2:33 PM
@nicholas - Great, thank you. I saw the
--use-volume
flag, but am too inexperienced with Docker (or Kubernetes) to dare to use too much of that for production. I just deployed the server on an EC2 and pointed the
docker-compose.yml
to a database hosted on RDS - seems to be working so far. I wish I could deploy it in a more elegant way, I hopefully will give it a try in the future
👍 1