-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
64 lines (55 loc) · 1.36 KB
/
docker-compose.test.yml
File metadata and controls
64 lines (55 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: "3.8"
services:
# Redis만 실행 (최소 의존성)
redis:
image: redis:7-alpine
container_name: kindmap-redis-test
ports:
- "6379:6379"
command: redis-server --appendonly no
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 3
# FastAPI 컨테이너
fastapi:
image: kindmap-fastapi:latest
container_name: kindmap-fastapi-test
ports:
- "8001:8001"
depends_on:
redis:
condition: service_healthy
environment:
# C++ 엔진 활성화
USE_CPP_ENGINE: "true"
# Redis 설정
REDIS_HOST: "redis"
REDIS_PORT: "6379"
# DB 설정 (테스트용 - 실제 연결 안 함)
DB_HOST: "localhost"
DB_PORT: "5432"
DB_NAME: "test_db"
DB_USER: "test_user"
DB_PASSWORD: "test_password"
# 성능 모니터링
ENABLE_PERFORMANCE_MONITORING: "true"
SLOW_REQUEST_THRESHOLD_MS: "500"
# 디버그
DEBUG: "true"
command: >
uvicorn app.main:app
--host 0.0.0.0
--port 8001
--workers 1
--log-level info
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
networks:
default:
name: kindmap-test-network