-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
96 lines (90 loc) · 2.04 KB
/
docker-compose.yml
File metadata and controls
96 lines (90 loc) · 2.04 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
services:
postgres:
image: postgres:15
environment:
POSTGRES_DB: antiscam_db
POSTGRES_USER: antiscam
POSTGRES_PASSWORD: password
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U antiscam -d antiscam_db"]
interval: 30s
timeout: 10s
retries: 3
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
ocr-service:
build:
context: .
dockerfile: services/ocr/Dockerfile
environment:
- REDIS_URL=redis://redis:6379/0
- OCR_HOST=0.0.0.0
- OCR_PORT=8001
depends_on:
- redis
volumes:
- ./temp_images:/app/temp_images
ports:
- "8001:8001"
llm-service:
build:
context: .
dockerfile: services/llm/Dockerfile
environment:
- REDIS_URL=redis://redis:6379/0
- MODEL_PATH=/app/models/quantized_model.gguf
- LLM_HOST=0.0.0.0
- LLM_PORT=8002
depends_on:
- redis
volumes:
- ./models:/app/models
ports:
- "8002:8002"
bot:
build:
context: .
dockerfile: services/bot/Dockerfile
environment:
- DATABASE_URL=postgresql://antiscam:password@postgres:5432/antiscam_db
- REDIS_URL=redis://redis:6379/0
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
volumes:
- ./logs:/app/logs
dashboard:
build:
context: .
dockerfile: services/dashboard/Dockerfile
environment:
- DATABASE_URL=postgresql://antiscam:password@postgres:5432/antiscam_db
- REDIS_URL=redis://redis:6379/0
env_file:
- .env
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
volumes:
postgres_data:
redis_data: