-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.nvidia.yml
More file actions
82 lines (77 loc) · 1.62 KB
/
compose.nvidia.yml
File metadata and controls
82 lines (77 loc) · 1.62 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
services:
ollama:
image: ollama/ollama:latest
container_name: ollama_service
devices:
- "/dev/kfd"
- "/dev/dri"
volumes:
- ollama:/root/.ollama
ports:
- "11434:11434"
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
count: all
restart: unless-stopped
networks:
- chabotnet
mongodb:
image: mongo:latest
container_name: mongodb_service
restart: unless-stopped
ports:
- "27017:27017"
volumes:
- mongodb_storage:/data/db
environment:
- MONGO_INITDB_DATABASE=admin
command: --noauth
networks:
- chabotnet
backend:
build: ./backend
container_name: backend_agentos
depends_on:
- ollama
- mongodb
environment:
- OLLAMA_URL=http://ollama:11434
- MONGODB_URL=mongodb://mongodb:27017
- BACKEND_URL=http://backend:8000
- PYTHONUNBUFFERED=1
ports:
- "8000:8000"
command: ["fastapi", "run", "main.py", "--port", "8000", "--workers", "4"]
restart: unless-stopped
networks:
- chabotnet
frontend:
build: ./frontend
container_name: frontend_streamlit
depends_on:
- ollama
- mongodb
- backend
ports:
- "8501:8501"
restart: unless-stopped
command:
[
"streamlit",
"run",
"main.py",
"--server.port=8501",
"--server.address=0.0.0.0",
"--browser.gatherUsageStats=false",
]
networks:
- chabotnet
networks:
chabotnet:
volumes:
ollama:
mongodb_storage: