Skip to content

Configuration(RelativeUrlWithoutBase) error when connecting to postgres in docker #2497

Closed Answered by laurentS
laurentS asked this question in Q&A
Discussion options

You must be logged in to vote

Just in case it helps someone else, the error was that I included double quotes in my docker-compose file around the url. So

    environment:
      # WRONG
      - DATABASE_URL="postgres://postgres:{{ dagster_postgres_password }}@pg/app"
      # RIGHT
      - DATABASE_URL="postgres://postgres:{{ dagster_postgres_password }}@pg/app"

I realise this is not really a sqlx problem, sorry about the noise.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by laurentS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant