[DevOps] Docker Compose PostgreSQL 초기화 실패, Role does not exist 오류와 로컬 DB 포트 충돌 해결기
·
카테고리 없음
도커 컨테이너 PostgreSQL과 로컬 PostgreSQL이 5432 포트에서 충돌할 때 발생하는 문제를 해결한 경험 혹시나 저와 같은 상황을 겪고 계시는분들이 있을까 싶어 글을 남겨봅니다.1. 문제 상황Spring Boot 백엔드와 PostgreSQL을 Docker Compose로 구성하려고 했습니다.하지만 DB 컨테이너를 띄우자마자 로그에서 아래와 같은 오류가 반복되었습니다. # 오류메세지FATAL: password authentication failed for user "postgres"DETAIL: Role "postgres" does not exist.Connection matched pg_hba.conf line 100: "host all all all scram-sha-256" 제 상황..