{"id":22768530,"url":"https://github.com/andrealcobia/keycloak-mysql-stack","last_synced_at":"2026-05-05T04:36:38.875Z","repository":{"id":252933294,"uuid":"841555841","full_name":"andrealcobia/keycloak-mysql-stack","owner":"andrealcobia","description":"The goal of this project is to use Keycloak and Mysql and import an existing realm.","archived":false,"fork":false,"pushed_at":"2024-08-13T10:21:04.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T21:15:13.711Z","etag":null,"topics":["docker","docker-compose","keycloak","mysql"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrealcobia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-12T16:33:02.000Z","updated_at":"2024-08-13T13:55:09.000Z","dependencies_parsed_at":"2024-08-16T23:03:24.431Z","dependency_job_id":null,"html_url":"https://github.com/andrealcobia/keycloak-mysql-stack","commit_stats":null,"previous_names":["andrealcobia/keycloak-mysql-stack"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrealcobia/keycloak-mysql-stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrealcobia%2Fkeycloak-mysql-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrealcobia%2Fkeycloak-mysql-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrealcobia%2Fkeycloak-mysql-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrealcobia%2Fkeycloak-mysql-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrealcobia","download_url":"https://codeload.github.com/andrealcobia/keycloak-mysql-stack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrealcobia%2Fkeycloak-mysql-stack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32635921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","keycloak","mysql"],"created_at":"2024-12-11T14:11:49.406Z","updated_at":"2026-05-05T04:36:38.855Z","avatar_url":"https://github.com/andrealcobia.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Keycloak-MySQL Project\n\nThis project demonstrates how to set up and configure a `Keycloak` identity and access management solution with a `MySQL` database, including the import of an existing realm.\n\n## Prerequisites\n\nBefore starting, ensure that you have the following installed:\n\n- [Docker](https://www.docker.com/)\n- [Docker Compose](https://docs.docker.com/compose/)\n\n## Starting the Environment\n\nTo start the `Keycloak` and `MySQL` environment, open a terminal, navigate to the root folder of the project, and run:\n\n```bash\ndocker-compose build \u0026\u0026 docker-compose up -d\n```\nThis script will start:\n\n- A MySQL Docker container configured to work with Keycloak.\n- A Keycloak Docker container that is set up to connect to the MySQL database.\n\n## Configuring Keycloak\n\nThe `Keycloak` container is configured to import an existing realm during its startup. By adding the `--import-realm` flag, the `realm-export.json` file located in the `keycloak-ini` folder will be automatically imported.\n\nImported Realm Configuration\nUpon successful startup, `Keycloak` will have the following configurations:\n\n- Realm: `example-realm`\n- Client: `example-client`\n- User: `test-user`\n\n**Accessing Keycloak** \nOnce the containers are up and running, you can access the Keycloak Admin Console at:\n\n- URL: http://localhost:8080\n- Default Admin Credentials:\n  - Username: `admin`\n  - Password: `admin`\n\nYou can log in with the admin credentials provided above, navigate to the example-realm, and manage the imported configurations.\n\n## Managing the Environment\n\n**Shutting Down**\nTo stop and remove all Docker containers and networks created by this setup, run the following script:\n```bash\n./shutdown-environment.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrealcobia%2Fkeycloak-mysql-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrealcobia%2Fkeycloak-mysql-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrealcobia%2Fkeycloak-mysql-stack/lists"}