-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
63 lines (58 loc) · 1.25 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
57
58
59
60
61
62
63
version: '3.6'
networks:
ollama:
services:
ollama:
image: ollama/ollama
networks:
- ollama
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ gpu ]
volumes:
- ./data/ollama:/root/.ollama
ports:
- 11434:11434
ollama-webui:
image: ghcr.io/ollama-webui/ollama-webui:main
volumes:
- ./data/ollama-webui:/app/backend/data
depends_on:
- ollama
ports:
- 3002:8080
environment:
- 'OLLAMA_API_BASE_URL=http://ollama:11434/api'
extra_hosts:
- host.docker.internal:host-gateway
networks:
- ollama
packet_raptor:
build:
context: ./
dockerfile: ./docker/Dockerfile # Specify the path to your existing Dockerfile
container_name: packet_raptor
restart: always
ports:
- "8585:8585"
volumes:
- ./config.toml:/root/.streamlit/config.toml
environment:
- OLLAMA_URL=http://ollama:11434
depends_on:
- ollama
networks:
- ollama
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ gpu ]
volumes:
ollama: {}