Repository navigation
Replies: 8 comments 1 reply
|
You can use the official Keycloak docker image jboss/keycloak, which supports configuring the PostgreSQL database (see environment variables section). |
|
You have read this section of the documentation, haven't you? |
|
Hey Naushadh, I tried this, but unfortunately it failed because the parameter "-e ...." (as an example) is not known by the programme. Best regards from Berlin Z. Matthias |
|
Hey Alexted, I tried that too with all the possible parameters listed there. But unfortunately the JDBC cannot establish the connection. I also do not have a "URL" for the DB server where this programme can dock. I assume that this can only work if I set up a PostgreSQL instance directly on the DOCKER as described there. However, I would like to address an external DB instance that is NOT on this host. Do you have another idea? Z. Matthias |
|
Can you share what command(s) you've tried and what the output(s) were? This should just work (replacing the $ docker run \
-e KEYCLOAK_USER=<USERNAME> \
-e KEYCLOAK_PASSWORD=<PASSWORD> \
-e DB_VENDOR=postgres \
-e DB_ADDR=<HOST NAME> \
-e DB_PORT=<PORT NUM> \
-e DB_USER=<DB USERNAME> \
-e DB_PASSWORD=<DB PASSWORD> \
-p 8080:8080
jboss/keycloak |
|
Hey, The Different between your and my command-line is, that you write the name of image after all parameters and I between the parameters. I would like to try it and give you a feedback. |
|
Hey, Which version of PostgreSQL is supported in this software & should I use the IP address rather than the hostname? Z. Matthias |
|
I'm also looking for a way to setup the (logical) PostgreSQL database for a docker compose setup. I have the PostgreSQL container running, but no nice way to configure the initial database creation anywhere. |
Uh oh!
There was an error while loading. Please reload this page.
Description
Hello all,
I am struggling to create a Dockerfile for KeyCloak that will allow me to use my external database server and its port.
Does anyone here have any ideas, suggestions on how I can do this?
Or would it make more sense for me to build an image that only accepts requests for Postgres and then pass them on?
Or who has another idea?
The point is that I have a central database server and I can monitor, maintain and back it up.
best regards from Berlin
Z. Matthias
All reactions