This commit is contained in:
happybell80 2025-07-16 12:07:59 +09:00
commit c02f34b713
3 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ frontend_default (172.18.0.0/16)
└── frontend-frontend-1 (172.18.0.3)
appnet (172.21.0.0/16)
└── test-api-container (172.21.0.2)
└── rb10508_test (172.21.0.2)
```
## 원인 분석
@ -52,7 +52,7 @@ docker network inspect appnet
4. **테스트**
```bash
docker exec frontend-backend-1 curl -s -o /dev/null -w "%{http_code}" http://test-api-container:10508/health
docker exec frontend-backend-1 curl -s -o /dev/null -w "%{http_code}" http://rb10508_test:10508/health
# 200 응답 확인
```

View File

@ -41,7 +41,7 @@ docker network create appnet
# 컨테이너들을 공유 네트워크에 연결
docker network connect appnet frontend-backend-1
docker network connect appnet test-api-container
docker network connect appnet rb10508_test
```
**결과**: Container-to-container 직접 통신 가능
@ -62,7 +62,7 @@ SERVICES = {
SERVICES = {
"frontend": {"url": "http://frontend:5173"}, # 컨테이너 DNS
"backend": {"url": "self"}, # Self-check 최적화
"test-api": {"url": "http://test-api-container:10508"} # 컨테이너 DNS
"test-api": {"url": "http://rb10508_test:10508"} # 컨테이너 DNS
}
```

View File

@ -13,7 +13,7 @@
**해결**:
- 서비스 URL을 IP 주소에서 컨테이너 이름으로 변경
- `http://172.17.0.2:5173``http://frontend:5173`
- `http://172.17.0.1:10508``http://test-api-container:10508`
- `http://172.17.0.1:10508``http://rb10508_test:10508`
### 2. TimescaleDB 설치 및 설정
**문제**: PostgreSQL에 TimescaleDB 확장 설치 필요