refactor: test-api-container를 rb10508_test로 이름 변경
This commit is contained in:
parent
f1b7b0c1d5
commit
d4f1956a5e
@ -19,7 +19,7 @@ frontend_default (172.18.0.0/16)
|
|||||||
└── frontend-frontend-1 (172.18.0.3)
|
└── frontend-frontend-1 (172.18.0.3)
|
||||||
|
|
||||||
appnet (172.21.0.0/16)
|
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. **테스트**
|
4. **테스트**
|
||||||
```bash
|
```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 응답 확인
|
# 200 응답 확인
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -41,7 +41,7 @@ docker network create appnet
|
|||||||
|
|
||||||
# 컨테이너들을 공유 네트워크에 연결
|
# 컨테이너들을 공유 네트워크에 연결
|
||||||
docker network connect appnet frontend-backend-1
|
docker network connect appnet frontend-backend-1
|
||||||
docker network connect appnet test-api-container
|
docker network connect appnet rb10508_test
|
||||||
```
|
```
|
||||||
|
|
||||||
**결과**: Container-to-container 직접 통신 가능
|
**결과**: Container-to-container 직접 통신 가능
|
||||||
@ -62,7 +62,7 @@ SERVICES = {
|
|||||||
SERVICES = {
|
SERVICES = {
|
||||||
"frontend": {"url": "http://frontend:5173"}, # 컨테이너 DNS
|
"frontend": {"url": "http://frontend:5173"}, # 컨테이너 DNS
|
||||||
"backend": {"url": "self"}, # Self-check 최적화
|
"backend": {"url": "self"}, # Self-check 최적화
|
||||||
"test-api": {"url": "http://test-api-container:10508"} # 컨테이너 DNS
|
"test-api": {"url": "http://rb10508_test:10508"} # 컨테이너 DNS
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
**해결**:
|
**해결**:
|
||||||
- 서비스 URL을 IP 주소에서 컨테이너 이름으로 변경
|
- 서비스 URL을 IP 주소에서 컨테이너 이름으로 변경
|
||||||
- `http://172.17.0.2:5173` → `http://frontend:5173`
|
- `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 설치 및 설정
|
### 2. TimescaleDB 설치 및 설정
|
||||||
**문제**: PostgreSQL에 TimescaleDB 확장 설치 필요
|
**문제**: PostgreSQL에 TimescaleDB 확장 설치 필요
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user