-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 990 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 990 Bytes
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
services:
ollama: # wip - for now ollama is required to run locally (ollama serve, ollama pull llama3.2).
image: custom-ollama:latest
build:
context: .
dockerfile: ollama/Dockerfile_ollama
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
environment:
- OLLAMA_MODELS=${OLLAMA_MODELS}
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
runtime: nvidia
profiles:
- ollama
chatcv:
image: chatcv-app:latest-${ENVIRONMENT}
build:
context: .
dockerfile: Dockerfile
secrets:
- source: guardrails_token
target: guardrails_token
ports:
- "8000:8000"
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- LLM_PROVIDER=${LLM_PROVIDER}
- OLLAMA_ENDPOINT=${OLLAMA_ENDPOINT}
- ENVIRONMENT=${ENVIRONMENT}
secrets:
guardrails_token:
environment: GUARDRAILS_TOKEN
volumes:
ollama_data: