-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
56 lines (53 loc) · 1.08 KB
/
docker-compose.yml
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
version: '3.4'
services:
openagent:
image: rss3/openagent:latest
container_name: openagent
ports:
- "18000:8000"
env_file:
- .env
depends_on:
- vector_db
networks:
- openagent-network
vector_db:
image: pgvector/pgvector:pg16
container_name: vec_db
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: openagent
ports:
- "15432:5432"
volumes:
- vector_data:/var/lib/postgresql/data
networks:
- openagent-network
ollama:
volumes:
- ollama_data:/root/.ollama
container_name: ollama
tty: true
restart: unless-stopped
image: ollama/ollama:latest
ports:
- "21434:11434"
environment:
- OLLAMA_KEEP_ALIVE=24h
networks:
- openagent-network
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ gpu ]
volumes:
vector_data:
ollama_data:
networks:
openagent-network:
external: false