By default, keycloak uses H2 database with data stored on filesystem inside $KEYCLOAK_HOME/standalone/data directory. You can switch to other database by configure datasource in standalone.xml or by switch to Mongo model (see our documentation for more details).

So unless you delete $KEYCLOAK_HOME/standalone/data directory, the data should be persistent among restarts.

Marek

On 29/01/16 21:57, Martin Min wrote:
After I restarted my KeyCloak server, all my realm and applications created are gone. Is that because the built-in database H2 doesn't persist the data on disk? How to keep the database after I restart the keycloak server?

Thanks.

On Fri, Jan 29, 2016 at 1:48 AM, Marko Strukelj <mstrukel@redhat.com> wrote:
No, localhost should work fine.
It's not Google's servers, but your browser that connects to this url
after being redirected from Google. So as long as your browser can see
it it should work.



_______________________________________________
keycloak-user mailing list
keycloak-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-user