-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.minimal.yml
More file actions
107 lines (101 loc) · 2.7 KB
/
docker-compose.minimal.yml
File metadata and controls
107 lines (101 loc) · 2.7 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
97
98
99
100
101
102
103
104
105
106
107
version: '3.8'
services:
# PostgreSQL Database
db:
image: postgres:15-alpine
container_name: agent-todo-db-minimal
environment:
POSTGRES_DB: agent_plan
POSTGRES_USER: user
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user -d agent_plan"]
interval: 10s
timeout: 5s
retries: 5
# Redis Cache & Message Broker
redis:
image: redis:7-alpine
container_name: agent-todo-redis-minimal
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
# Qdrant Vector Database
qdrant:
image: qdrant/qdrant:latest
container_name: agent-todo-qdrant-minimal
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
depends_on:
- redis
# Celery Worker
celery-worker:
build:
context: .
dockerfile: Dockerfile
container_name: agent-todo-celery-worker-minimal
command: sh server/scripts/celery_worker.sh
environment:
- DATABASE_URL=postgresql+psycopg2://user:password@db:5432/agent_plan
- REDIS_URL=redis://redis:6379/0
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- OLLAMA_HOST=http://222.253.80.30:11434
- OLLAMA_MODEL=llama3.1:8b
- BGE3_API_URL=https://embed.andyanh.id.vn/embed
- QDRANT_HOST=qdrant
- QDRANT_PORT=6333
- QDRANT_COLLECTION=todo_embeddings
volumes:
- .:/app
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
qdrant:
condition: service_started
# Celery Beat (Scheduler)
celery-beat:
build:
context: .
dockerfile: Dockerfile
container_name: agent-todo-celery-beat-minimal
command: celery -A server.app.celery_app beat --loglevel=info
environment:
- DATABASE_URL=postgresql+psycopg2://user:password@db:5432/agent_plan
- REDIS_URL=redis://redis:6379/0
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- OLLAMA_HOST=http://222.253.80.30:11434
- OLLAMA_MODEL=llama3.1:8b
- BGE3_API_URL=https://embed.andyanh.id.vn/embed
- QDRANT_HOST=qdrant
- QDRANT_PORT=6333
- QDRANT_COLLECTION=todo_embeddings
volumes:
- .:/app
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
qdrant:
condition: service_started
volumes:
postgres_data:
redis_data:
qdrant_data: