본문 바로가기
기타

keycloak 설치

by 앗사비 2023. 11. 24.
728x90

* 가이드
https://www.keycloak.org/getting-started/getting-started-docker


* 도커 컴포즈
version: '3'

services:
  keycloak:
    image: quay.io/keycloak/keycloak:23.0.0
    ports:
      - "8080:8080"
    environment:
      - KEYCLOAK_ADMIN=admin
      - KEYCLOAK_ADMIN_PASSWORD=admin
    command: ["start-dev"]



* 테스트를 위해 https 요구사항 끄기 (컨테이너 내부에서 실행)
cd /opt/keycloak/bin
./kcadm.sh config credentials --server http://localhost:8080 --realm master --user admin
./kcadm.sh update realms/master -s sslRequired=NONE

* 참고
https://velog.io/@jungsangu/Keycloak-HTTPS-required-%EC%97%90%EB%9F%AC

728x90