ImageProcessor_MainServer/README.dev-main.md

41 lines
872 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# FastAPI 메인 서버 (개발 환경)
> 이미지 번역 + 배경제거 API
> Flower · Grafana · Prometheus 포함 풀스택 **모두 동일 머신에서 실행**.
## 📂 구조
```
.
├─ app/
├─ temp_files/
├─ prometheus/prometheus.yml
├─ docker-compose.dev.yml
└─ Dockerfile
```
## 🚀 시작
```bash
cp .env.dev.example .env.dev
docker compose -f docker-compose.dev.yml up -d --build
```
| 서비스 | 포트 | 설명 |
|--------|------|------|
|FastAPI|`7890`|`/health`|
|Flower|`5555`|Celery UI|
|Prometheus|`9090`|timeseries DB|
|Grafana|`3000`|시각화 (`admin/admin`)|
|Exporter|`9808`|Celery → Prometheus|
## 🛠️ 명령
|목적|명령|
|---|---|
|로그|`docker compose -f docker-compose.dev.yml logs -f fastapi`|
|중지|`docker compose -f docker-compose.dev.yml down`|
> `--reload` 는 개발 전용입니다.