Skip to content

Commit a5993ba

Browse files
authored
[Fix]: 배포 문제 해결
배포 문제 해결 및 배포 플로우 readme에 추가.
2 parents 0fb97d7 + 1a2eeee commit a5993ba

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
11
# WEB6_8_Bid_BE
22

33
프로그래머스 6기 8회차 최종 프로젝트 12팀(Bid) - 백엔드
4+
5+
# 🚀 배포 플로우
6+
7+
### 자동 배포 (CI/CD)
8+
```
9+
1. 개발자가 main 브랜치에 코드 push
10+
11+
2. GitHub Actions 워크플로우 자동 실행
12+
13+
3. Gradle로 프로젝트 빌드
14+
15+
4. Docker 이미지 생성 및 ghcr.io에 푸시
16+
17+
5. EC2 인스턴스에 SSH 접속
18+
19+
6. 기존 컨테이너 중지/제거 → 새 이미지 pull → 새 컨테이너 실행
20+
21+
7. 배포 완료
22+
```
23+
24+
### 인프라 구조
25+
```
26+
AWS EC2 (인스턴스)
27+
├─ Nginx (Docker)
28+
├─ MySQL (Docker)
29+
├─ Redis (Docker)
30+
├─ Elasticsearch (Docker)
31+
└─ Spring Boot App (Docker)
32+
```
33+
34+
### 인프라 세부사항
35+
- **배포 환경**: AWS EC2 1대 (ap-northeast-2b)
36+
- **컨테이너화**: Docker 기반
37+
- **이미지 저장소**: GitHub Container Registry (ghcr.io)
38+
- **배포 자동화**: GitHub Actions
39+
- **배포 트리거**: main 브랜치 push

src/main/resources/application-prod.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,16 @@ testdata:
3939
enabled: false
4040

4141
server:
42-
port: 8080
42+
port: 8080
43+
44+
management:
45+
endpoints:
46+
web:
47+
base-path: /actuator
48+
exposure:
49+
include: health,info
50+
endpoint:
51+
health:
52+
probes:
53+
enabled: true
54+
show-details: never

0 commit comments

Comments
 (0)