Hi there - I am a bit lost when it comes to deploy...
# prefect-community
l
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
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
@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