Conversation
전체 서비스가 docker compose up -d로 기동되도록 통합 환경을 구성합니다. ## Dockerfile - docker/Dockerfile.spring: Gradle 8.12 + JDK 21 멀티스테이지 빌드 - docker/Dockerfile.web: Node 20 빌드 + Nginx SPA 서빙 - docker/nginx.conf: SPA fallback + API 프록시 → Gateway(8080) ## docker-compose.yml 주요 수정 - JDBC → R2DBC URL로 변경 (모든 서비스가 WebFlux/R2DBC 기반) - JWT_SECRET 공유: gateway ↔ auth-service 동일 시크릿 - EVENT_SERVICE_URL: reservation → event 서비스 간 WebClient 통신 - Gateway 라우팅: 환경변수 기반으로 5개 서비스 라우팅 구성 - version 키 제거 (Compose V2 표준) - Web 프론트엔드 서비스 추가 (Nginx, 포트 3000) ## 서비스 구성 (8개) | Service | Port | 역할 | |---------|------|------| | web | 3000 | Vue 3 프론트엔드 (Nginx) | | gateway | 8080 | API Gateway + JWT 인증 | | auth | 8081 | 인증/인가 | | user | 8082 | 유저/테넌트 | | event | 8083 | 공연/좌석 | | reservation | 8084 | 예매/대기열 | | payment | 8085 | 결제 | | infra | - | PostgreSQL, Redis, Kafka |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
개요
전체 서비스가
docker compose up -d로 기동되도록 통합 환경을 구성합니다.closes #4
변경 사항 (4 files, +217 / -51)
신규 파일
docker/Dockerfile.spring— Gradle 8.12 + JDK 21 멀티스테이지 빌드docker/Dockerfile.web— Node 20 빌드 + Nginx SPAdocker/nginx.conf— SPA fallback + API 프록시 → Gatewaydocker-compose.yml 수정
version키 제거 (Compose V2)전체 구성 (8개 서비스 + 인프라)