How should I configure my docker-compose file so that i can persist my keycloak realm?
I’m trying to secure my springboot application with keycloak but after a certain period keycloak resests and deletes the realm that i created so I have to create it again. I have patially imported my realm and everytime I recreate it using the JSON file i downloaded but I want to persist it in my docker-compose.yml file.
Spring Boot Keycloak docker-compose
I am having an issue when my Spring Boot app in Docker container tries to access Keycloak Docker container. I have created them using docker-compose. Here are the files: