<aside> 📁
포함된 주요 파일
디렉토리 구조 정리
ecs-devops-template/
├── .env.sample
├── docker-compose.yml
├── backend/
│ └── Dockerfile
├── nginx/
│ ├── nginx.conf
│ └── certbot/
├── monitoring/
│ ├── prometheus.yml
│ ├── rules.yml
│ └── grafana-dashboard.json
├── alertmanager/
│ └── alertmanager.yml
├── .github/
│ └── workflows/
│ └── deploy.yml
├── appspec.yaml
├── taskdef.json
└── README.md
README.md 예시
# AWS ECS + Docker 기반 DevOps 템플릿
이 템플릿은 다음 기능을 제공합니다:
- [x] ECS + CodeDeploy 기반 Blue/Green 배포
- [x] GitHub Actions 기반 CI/CD 자동화
- [x] Let's Encrypt HTTPS 자동 발급
- [x] Prometheus + Grafana 모니터링
- [x] Slack AlertManager 알림 연동
- [x] Nginx 리버스 프록시 설정
- [x] .env 파일 기반 환경변수 관리
## 사용 방법
1. `Use this template` 버튼 클릭
2. `.env.sample`을 복사해 `.env` 파일 생성
3. GitHub Secrets에 다음 항목 추가:
- `EC2_HOST`
- `EC2_SSH_KEY`
- `AWS_ACCESS_KEY_ID`
- `AWS_SECRET_ACCESS_KEY`
4. `docker-compose up -d` 로 로컬 테스트 가능
## 디렉토리 구조
- `backend/`: Spring 또는 Node 백엔드
- `nginx/`: 리버스 프록시 + HTTPS
- `monitoring/`: Prometheus 설정
- `alertmanager/`: 슬랙 경고 설정
- `.github/workflows`: GitHub Actions CI/CD