-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (50 loc) · 1.25 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (50 loc) · 1.25 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
# docker-compose.yml — Research Project Template
# Usage:
# docker compose --profile dev up -d # Dev environment
# docker compose --profile ollama up -d # With local Ollama
services:
research-template:
build:
context: ../../
dockerfile: infrastructure/docker/Dockerfile
container_name: research-template-dev
volumes:
- ../../:/home/research/template
- output_data:/home/research/template/output
working_dir: /home/research/template
environment:
- OLLAMA_HOST=http://ollama:11434
- LOG_LEVEL=1
- UV_FROZEN=true
- MPLBACKEND=Agg
ports:
- "8000:8000" # For any web interfaces
command: sleep infinity
profiles:
- dev
depends_on:
ollama:
condition: service_started
required: false
ollama:
image: ollama/ollama:latest
container_name: research-ollama
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
environment:
- OLLAMA_HOST=0.0.0.0
profiles:
- ollama
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:11434/api/tags"]
interval: 30s
timeout: 10s
retries: 3
volumes:
output_data:
ollama_data:
networks:
default:
name: research-network