Unable to ignore migration if realm already exists

Hi all,

I have Keycloak running in the docker container and recently upgraded the version from 11.0.3 to 19.0.3

Everything works fine except the realm settings are being re-imported again after I down & up the containers again.

I am suspecting that the following is working in 11.0.3 but no longer working for 19.0.3

-Dkeycloak.migration.strategy=IGNORE_EXISTING

Any ideas? Basically what I want to achieve is to have the realm imported only if it does not exist

Thanks
Robert

Issue resolved - configuration issue

It was due to the connection to the db container in my case. Fixed it by using a KC_DB_* environment variables

and removed the -Dkeycloak.migration.strategy=IGNORE_EXISTING