Extends the Keycloak docker image to use PostgreSQL and allow reverse proxying, plus some additional tweaks for Computer Science House.
Start a Keycloak instance:
docker run --name keycloak computersciencehouse/keycloak
When starting the Keycloak instance you can pass a number of environment variables to configure how it connects to PostgreSQL. For example:
docker run --name keycloak -e POSTGRES_PORT_5432_TCP_ADDR=postgres.mycompany.com -e DB_DATABASE=keycloak -e DB_USER=keycloak -e DB_PASSWORD=password computersciencehouse/keycloak
Specify the initial admin user to create.
Specify the initial admin user's password.
Specify the hostname of the PostgreSQL server.
Specify the port of the PostgreSQL server (optional, default is 5432
).
Specify the name of the PostgreSQL database (optional, default is keycloak
).
Specify the user for the PostgreSQL database (optional, default is keycloak
).
Specify the password for the PostgreSQL database (optional, default is password
).