-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 969 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (35 loc) · 969 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
version: '3.8'
services:
ollama:
image: ollama/ollama
container_name: ollama
network_mode: host
volumes:
- ollama_data:/root/.ollama
restart: unless-stopped
entrypoint: /bin/bash
command: >
-c "ollama serve &
sleep 2 &&
ollama pull mxbai-embed-large &&
ollama pull qwen2.5-coder:3b-instruct-q6_K &&
ollama pull qwen2.5-coder:14b-instruct-q6_K &&
tail -f /dev/null"
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:11434/']
interval: 10s
timeout: 5s
retries: 3
app:
build: .
network_mode: host
volumes:
- .:/app
environment:
- ADMINPASS=ATDSGAIS123
- OLLAMA_HOST=http://localhost:11434
depends_on:
- ollama
restart: unless-stopped
volumes:
ollama_data: