Skip to content

Docker Image #490

Answered by jflamy-dev
JDFS404 asked this question in Q&A
Discussion options

You must be logged in to vote

Clearly not.

There are two ways to get owlcms to use Postgres.

One is to set the variable JDBC_DATABASE_URL to something that starts with jdbc:postgres and set JDBC_DATABASE_USERNAME and JDBC_DATABASE_PASSWORD to the correct value. In this case the port number and host are in the URL.

The other way is to NOT set JDBC_DATABASE_URL at all. Instead, use the five variables POSTGRES_HOST POSTGRES_PORT POSTGRES_DB POSTGRES_USER and POSTGRES_PASSWORD

Both should work (Heroku uses the first method, and under Kubernetes the owlcms container talks to the postgres container using the second method).

Replies: 12 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jflamy-dev
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #488 on June 07, 2022 12:20.