DEV Community

Discussion on: How to deploy a free Auth0 alternative to DigitalOcean in 5 minutes

Collapse
 
andreibursuc97 profile image
Andrei Bursuc • Edited

The only way to enable metrics that I found is to create a file called keycloak.properties with the content

http.enabled=true
cluster=local
db=h2-mem
db.username = sa
db.password = keycloak
metrics.enabled=true
Enter fullscreen mode Exit fullscreen mode

After that run in the dockerfile the commands:

COPY keycloak.properties /opt/jboss/keycloak/conf/
WORKDIR /opt/jboss/keycloak
RUN ./bin/kc.sh config
Enter fullscreen mode Exit fullscreen mode
Collapse
 
tillsanders profile image
Till Sanders

Neat, thanks! Still wondering why the env vars didn't work though 🤔

Collapse
 
andreibursuc97 profile image
Andrei Bursuc • Edited

I also asked a question keycloak.discourse.group/t/keycloa... regarding an api change that was made in Keycloak.X from Keycloak and why this was not documented and the answer I received is that this is still a preview, not an official release. So i guess that there are some things that may not work as expected