# Quarkus Keycloak development mode and custom database

**URL:** <https://forum.keycloak.org/t/quarkus-keycloak-development-mode-and-custom-database/14782>\
**Category:** Getting advice\
**Created:** [April 5, 2022, 12:40pm UTC](https://forum.keycloak.org/t/quarkus-keycloak-development-mode-and-custom-database/14782 "2022-04-05T12:40:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jari.metsala](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/jari.metsala/32/5513_2.png) [@jari.metsala](https://forum.keycloak.org/u/jari.metsala)\
**Post date:** [April 5, 2022, 12:40pm UTC](https://forum.keycloak.org/t/quarkus-keycloak-development-mode-and-custom-database/14782/1 "2022-04-05T12:40:29Z")

</div>

Is it possible to use a custom database (like PostgreSQL) when using the development mode (start-dev) in the Quarkus powered Keycloak?

There is not much written about the differences of the development and production modes and how they affect the configurability of Keycloak.

---

<div class="post-metadata">

**Author:** ![jari.metsala](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/jari.metsala/32/5513_2.png) [@jari.metsala](https://forum.keycloak.org/u/jari.metsala)\
**Post date:** [April 5, 2022, 2:14pm UTC](https://forum.keycloak.org/t/quarkus-keycloak-development-mode-and-custom-database/14782/2 "2022-04-05T14:14:13Z")

</div>

I am replying to myself in case anyone else is also interested in this topic. It seems like you can use a custom database with development mode.

How it is done differs from the instructions given for production mode where you first build with “–db postgres” option and then start with the other database related options. When using development mode you need to include all of these options to the startup command:

./kc.sh start-dev --db-url jdbc:postgresql://localhost:5432/DB\_NAME --db postgres --db-username DB\_USERNAME --db-password DB\_PASSWORD

It would be nice to have an example of this included also here:

> **[Configuring the database - Keycloak](https://www.keycloak.org/server/db)**
>
> Keycloak is an open source identity and access management solution
