forked from openai/openai-support-agent-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.agent.yml
More file actions
65 lines (60 loc) · 1.39 KB
/
docker-compose.agent.yml
File metadata and controls
65 lines (60 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
62
63
64
65
services:
ai-agent:
build:
context: .
dockerfile: Dockerfile.agent
restart: unless-stopped
env_file:
- .env.ai
ports:
- '3001:3001'
depends_on: # services reference each other via these container names
- postgres
- redis
- ollama
entrypoint: docker/entrypoints/ai-agent.sh
networks:
- support-net
volumes:
- ./logs/scrape_jobs:/app/logs/scrape_jobs
- ./public/knowledge_base:/app/public/knowledge_base
postgres:
image: pgvector/pgvector:pg16
container_name: demo-db
restart: always
ports:
- '5434:5432' # use host port 5434 to avoid conflicts with local Postgres on 5432
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
networks:
- support-net
redis:
image: redis:alpine
restart: always
ports:
- '6380:6379' # use host port 6380 to avoid conflicts with local Redis on 6379
volumes:
- redis_data:/data
container_name: demo-redis
networks:
- support-net
ollama:
image: ollama/ollama:latest
restart: unless-stopped
ports:
- '11434:11434'
volumes:
- ollama:/root/.ollama
networks:
- support-net
volumes:
postgres_data:
redis_data:
ollama:
networks:
support-net:
external: true