-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (67 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
74 lines (67 loc) · 1.4 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
65
66
67
68
69
70
71
72
73
74
version: '3.8'
services:
# MongoDB (내장)
mongodb:
image: mongo:7
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
restart: unless-stopped
# Redis (내장)
redis:
image: redis:7-alpine
ports:
- "6379:6379"
restart: unless-stopped
# FastAPI 서버
econoeasy-api:
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
ports:
- "8000:8000"
depends_on:
- mongodb
- redis
restart: unless-stopped
# 백그라운드 워커1 (기사 요약)
econoeasy-worker-article:
build:
context: .
dockerfile: Dockerfile.worker
command: python -m app.services.queue.worker
env_file:
- .env
depends_on:
- mongodb
- redis
restart: unless-stopped
# 백그라운드 워커2 (영상 추천)
econoeasy-worker-recommend:
build:
context: .
dockerfile: Dockerfile.worker
command: python -m app.services.recommend_queue.worker
env_file:
- .env
depends_on:
- mongodb
- redis
restart: unless-stopped
# 백그라운드 워커3 (키워드 추출)
econoeasy-worker-keyword:
build:
context: .
dockerfile: Dockerfile.worker
command: python -m app.services.keyword_queue.worker
env_file:
- .env
depends_on:
- mongodb
- redis
restart: unless-stopped
volumes:
mongodb_data: