-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (58 loc) · 1.39 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (58 loc) · 1.39 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
services:
# FastAPI 백엔드
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: mint-backend
ports:
- "8000:8000"
volumes:
# 데이터 영속화 (DB, 로그)
- ./data:/app/data
# 개발 모드: 코드 Hot Reload (아래 주석 해제)
# - ./backend:/app/backend
environment:
- ENVIRONMENT=production
- DEBUG=false
- LOG_LEVEL=INFO
- DATABASE_URL=sqlite:////app/data/mint.db
- SCHEDULER_ENABLED=true
- TZ=Asia/Seoul
env_file:
- ./backend/.env
restart: unless-stopped
networks:
- mint-network
healthcheck:
test: ["CMD", "python3", "-c", "import httpx; httpx.get('http://localhost:8000/health', timeout=5)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# 준실시간 주가 폴링 서비스
price-poller:
build:
context: ./price-poller
dockerfile: Dockerfile
container_name: mint-price-poller
restart: unless-stopped
volumes:
- ./data:/app/data
environment:
- ENVIRONMENT=production
- LOG_LEVEL=INFO
- DATABASE_URL=sqlite:////app/data/mint.db
- TZ=Asia/Seoul
env_file:
- ./.env
depends_on:
backend:
condition: service_healthy
networks:
- mint-network
networks:
mint-network:
driver: bridge
volumes:
postgres_data: