Docker Compose 설정 - PostgreSQL 18+ 호환성 및 마이크로서비스 데이터베이스 격리 #10
+31
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 변경 내용 요약
이 PR은 두 가지 주요 문제를 해결합니다:
🔗 관련 이슈
💡 주요 변경 사항
docker-compose.yml:
database_user,database_chat,database_game:/var/lib/postgresql/data→/var/lib/postgresql(PostgreSQL 18+ 호환)user,chat,game서비스에DATABASE_ENGINE=postgresql명시적 설정 추가 (최고 우선순위)USER_API_URL=http://localhost/api/userCHAT_API_URL=http://localhost/api/chatFRIEND_API_URL=http://localhost/api/user/friendGAME_API_URL=http://localhost/api/game환경 변수 우선순위:
environment:(최고) > 서비스별.env> 메인.env(최저)🧩 리뷰어 참고 사항
/var/lib/postgresql/18/docker/에 저장합니다.docker-compose down -v로 제거 후 재생성이 필요할 수 있습니다.✅ 테스트 방법
Docker Compose 완전 재시작:
데이터베이스 연결 확인:
프론트엔드 환경 변수 확인:
통합 테스트:
docker-compose down -v실행 후 재시작).