Skip to content

Use your own postgreSQL database in prefect server #3700

Answered by zanieb
Sinha-Ujjawal asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! You can change the config values to point to your own database.

    [server.database]
    host = "localhost"
    port = "5432"
    host_port = "5432"
    name = "prefect_server"
    username = "prefect"
    # set to "" to generate a random password each time the database starts
    password = "test-password"
    connection_url = "postgresql://${server.database.username}:${server.database.password}@${server.database.host}:${server.database.port}/${server.database.name}"
    volume_path = "${home_dir}/pg_data"

All the available options can be seen at https://github.com/PrefectHQ/prefect/blob/master/src/prefect/config.toml

Config precedence docs at https://docs.prefect.io/core/concepts/c…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sinha-Ujjawal
Comment options

Answer selected by Sinha-Ujjawal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants