Starting SSO with Keycloak
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1DnLJwKDiRrJ5_ndjWNUH2nQPBSvpLyAJfDxhKRAtlvMg4Rtq_1R819aI8krkweqKHoLfhvIEqFOax2cNlfC25aCV0n6bP8R_CWGJK-QXohshcRztg2p0Vn13_OeUH32O9grCoqRyJdebQ0wVnz6z1MIn-ddWeVAvhYLJKCbm1_y6f3xOEPNiwQ/s320/container-scaled.jpg)
I've been using Keycloak for years now and have been experimenting with the newer versions that are based on top of Quarkus . One of the struggles I've had is spinning up a test server for development. The new Quarkus model though is pretty simple. A small Docker Compose script let's you spin up an environment in almost no time. My script looks like: version: '3.8' services: postgres: image: postgres:latest environment: POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} restart: unless-stopped healthcheck: test: [ "CMD-SHELL", "pg_isready -U postgres" ] networks: - pg_network volumes: - ./pgdata:/var/lib/postgresql/data - ./create_db.sql:/docker-entrypoint-initdb.d/create_db.sql keycloak: image: quay.io/keycloak/keycloak:latest depends_on: postgres: condition: service_healthy environment: KC_DB: ${KC_DB} KC_DB_URL: ${KC_DB_URL} KC_DB_USERNAM