forked from neural-maze/ava-whatsapp-agent-course
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (52 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
52 lines (52 loc) · 1.17 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
services:
qdrant:
image: qdrant/qdrant:latest
ports:
- "6333:6333"
volumes:
- ./long_term_memory:/qdrant/storage
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "bash -c '</dev/tcp/localhost/6333'"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 512M
rose:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
env_file:
- .env
environment:
- DOCKER_ENV=true
- PORT=8000
- QDRANT_PORT=6333
- QDRANT_HOST=qdrant
- QDRANT_URL=http://qdrant:6333
restart: unless-stopped
volumes:
- ./short_term_memory:/app/data
depends_on:
qdrant:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://localhost:8000/api/v1/health')\" || exit 1"]
interval: 30s
timeout: 10s
start_period: 60s
retries: 3
deploy:
resources:
limits:
memory: 1G
reservations:
memory: 512M