-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose.yaml
58 lines (54 loc) · 1.36 KB
/
compose.yaml
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
services:
llm_hackathon:
build: .
container_name: llm_hackathon
stdin_open: true # docker run -i
tty: true # docker run -t
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [gpu]
ollama:
image: ollama/ollama:latest
container_name: ollama
hostname: ollama
ports:
- "11434:11434"
volumes:
- ollama_volume:/root/.ollama
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [gpu]
# ------------------------------------------------------------
# UNCOMMENT THESE AND REMOVE THE LINES ABOVE (1-28) IF YOU WISH TO
# UTILIZE AN AMD GPU WITHIN THE CONTAINER ENVIRONMENT
# ------------------------------------------------------------
# services:
# llm_hackathon:
# build: .
# container_name: llm_hackathon
# devices:
# - /dev/kfd
# - /dev/dri
# stdin_open: true # docker run -i
# tty: true # docker run -t
# ollama:
# image: ollama/ollama:rocm
# devices:
# - /dev/kfd
# - /dev/dri
# container_name: ollama
# hostname: ollama
# ports:
# - "11434:11434"
# volumes:
# - ollama_volume:/root/.ollama
volumes:
ollama_volume: